3 namespace Drupal\ctools;
6 interface ConstraintConditionInterface {
9 * Applies relevant constraints for this condition to the injected contexts.
11 * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
15 public function applyConstraints(array $contexts = array());
18 * Removes constraints for this condition from the injected contexts.
20 * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
24 public function removeConstraints(array $contexts = array());