You are here

interface WebformEntityConditionsManagerInterface in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityConditionsManagerInterface.php \Drupal\webform\WebformEntityConditionsManagerInterface

Provides an interface defining a webform conditions (#states) manager.

Hierarchy

Expanded class hierarchy of WebformEntityConditionsManagerInterface

All classes that implement WebformEntityConditionsManagerInterface

File

src/WebformEntityConditionsManagerInterface.php, line 8

Namespace

Drupal\webform
View source
interface WebformEntityConditionsManagerInterface {

  /**
   * Convert a webform's #states to a human read-able format.
   *
   * @param \Drupal\webform\WebformInterface $webform
   *   A webform.
   * @param array $states
   *   An element's #states array.
   * @param array $options
   *   An associative array of configuration options.
   *
   * @return array
   *   A renderable array containing the webform's #states displayed in
   *   a human read-able format.
   */
  public function toText(WebformInterface $webform, array $states, array $options = []);

}

Members

Namesort descending Modifiers Type Description Overrides
WebformEntityConditionsManagerInterface::toText public function Convert a webform's #states to a human read-able format. 1