You are here

public function WebformEntityConditionsManagerInterface::toText in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformEntityConditionsManagerInterface.php \Drupal\webform\WebformEntityConditionsManagerInterface::toText()

Convert a webform's #states to a human read-able format.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

array $states: An element's #states array.

array $options: An associative array of configuration options.

Return value

array A renderable array containing the webform's #states displayed in a human read-able format.

1 method overrides WebformEntityConditionsManagerInterface::toText()
WebformEntityConditionsManager::toText in src/WebformEntityConditionsManager.php
Convert a webform's #states to a human read-able format.

File

src/WebformEntityConditionsManagerInterface.php, line 24

Class

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

Namespace

Drupal\webform

Code

public function toText(WebformInterface $webform, array $states, array $options = []);