interface ConstraintConditionInterface

Same name in other branches
  1. 4.0.x src/ConstraintConditionInterface.php \Drupal\ctools\ConstraintConditionInterface

Interface for Constraint Conditions

Hierarchy

Expanded class hierarchy of ConstraintConditionInterface

All classes that implement ConstraintConditionInterface

3 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

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. 1
ConstraintConditionInterface::removeConstraints public function Removes constraints for this condition from the injected contexts. 1