You are here

WebformEntityConditionsManagerInterface.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/WebformEntityConditionsManagerInterface.php

Namespace

Drupal\webform

File

src/WebformEntityConditionsManagerInterface.php
View source
<?php

namespace Drupal\webform;


/**
 * Provides an interface defining a webform conditions (#states) manager.
 */
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 = []);

}

Interfaces

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