You are here

interface ConditionalFieldsHandlersPluginInterface in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/ConditionalFieldsHandlersPluginInterface.php \Drupal\conditional_fields\ConditionalFieldsHandlersPluginInterface

Defines the required interface for all conditional field's handler plugins.

Hierarchy

Expanded class hierarchy of ConditionalFieldsHandlersPluginInterface

All classes that implement ConditionalFieldsHandlersPluginInterface

File

src/ConditionalFieldsHandlersPluginInterface.php, line 8

Namespace

Drupal\conditional_fields
View source
interface ConditionalFieldsHandlersPluginInterface {

  /**
   * Executes states handler according to conditional fields settings.
   */
  public function statesHandler($field, $field_info, $options);

  /**
   * Get values from widget settings for plugin.
   *
   * @param array $value_form
   *   Dependency options.
   *
   * @return mixed
   *   Values for triggering events.
   */
  public function getWidgetValue(array $value_form);

  /**
   * Get values form the condition options
   *
   * @param array $options
   *   The condition options or the array of values
   *
   * @return mixed
   *   Values for triggering events.
   */
  public function getConditionValues(array $options);

}

Members

Namesort descending Modifiers Type Description Overrides
ConditionalFieldsHandlersPluginInterface::getConditionValues public function Get values form the condition options 1
ConditionalFieldsHandlersPluginInterface::getWidgetValue public function Get values from widget settings for plugin. 1
ConditionalFieldsHandlersPluginInterface::statesHandler public function Executes states handler according to conditional fields settings. 15