You are here

interface ConstraintConditionInterface in Chaos Tool Suite (ctools) 8.3

Hierarchy

Expanded class hierarchy of ConstraintConditionInterface

All classes that implement ConstraintConditionInterface

4 files declare their use of ConstraintConditionInterface
ConditionConfigure.php in src/Form/ConditionConfigure.php
ConditionDelete.php in src/Form/ConditionDelete.php
EntityBundle.php in src/Plugin/Condition/EntityBundle.php
NodeType.php in src/Plugin/Condition/NodeType.php

File

src/ConstraintConditionInterface.php, line 6

Namespace

Drupal\ctools
View source
interface ConstraintConditionInterface {

  /**
   * Applies relevant constraints for this condition to the injected contexts.
   *
   * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
   *
   * @return null
   */
  public function applyConstraints(array $contexts = []);

  /**
   * Removes constraints for this condition from the injected contexts.
   *
   * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
   *
   * @return null
   */
  public function removeConstraints(array $contexts = []);

}

Members

Namesort descending Modifiers Type Description Overrides
ConstraintConditionInterface::applyConstraints public function Applies relevant constraints for this condition to the injected contexts. 2
ConstraintConditionInterface::removeConstraints public function Removes constraints for this condition from the injected contexts. 2