You are here

interface ConditionCreatorInterface in Block Visibility Groups 8

Hierarchy

Expanded class hierarchy of ConditionCreatorInterface

All classes that implement ConditionCreatorInterface

File

block_visibility_groups_admin/src/Plugin/ConditionCreatorInterface.php, line 8

Namespace

Drupal\block_visibility_groups_admin\Plugin
View source
interface ConditionCreatorInterface {

  /**
   * Create condition elements for form.
   *
   * @return array
   */
  public function createConditionElements();

  /**
   * Create condition configuration from form submission.
   *
   * @param array $plugin_info
   *   The plugin implementation definition.
   *
   * @return array
   *   The condition config.
   */
  public function createConditionConfig($plugin_info);

  /**
   * Get the label when creating a new condition.
   *
   * @return string
   *   A new condition label.
   */
  public function getNewConditionLabel();

  /**
   * Determine if a condition was selected in the form.
   *
   * @param $condition_info
   *
   * @return bool
   *   TRUE if the condition was selected in a form.
   */
  public function itemSelected($condition_info);

}

Members

Namesort descending Modifiers Type Description Overrides
ConditionCreatorInterface::createConditionConfig public function Create condition configuration from form submission. 1
ConditionCreatorInterface::createConditionElements public function Create condition elements for form. 1
ConditionCreatorInterface::getNewConditionLabel public function Get the label when creating a new condition. 3
ConditionCreatorInterface::itemSelected public function Determine if a condition was selected in the form. 1