interface ConstraintConditionInterface

Same name in other branches
  1. 8.x-3.x src/ConstraintConditionInterface.php \Drupal\ctools\ConstraintConditionInterface

Interface for Constraint Conditions

Hierarchy

Expanded class hierarchy of ConstraintConditionInterface

All classes that implement ConstraintConditionInterface

5 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
EntityBundleConstraint.php in src/Plugin/Condition/EntityBundleConstraint.php
NodeType.php in src/Plugin/Condition/NodeType.php

File

src/ConstraintConditionInterface.php, line 8

Namespace

Drupal\ctools
View source
interface ConstraintConditionInterface {
    
    /**
     * Applies relevant constraints for this condition to the injected contexts.
     *
     * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
     *   Contexts to apply.
     */
    public function applyConstraints(array $contexts = []);
    
    /**
     * Removes constraints for this condition from the injected contexts.
     *
     * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
     *   Contexts to remove.
     */
    public function removeConstraints(array $contexts = []);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ConstraintConditionInterface::applyConstraints public function Applies relevant constraints for this condition to the injected contexts. 3
ConstraintConditionInterface::removeConstraints public function Removes constraints for this condition from the injected contexts. 3