ConstraintConditionInterface.php 576 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\ctools;
  3. interface ConstraintConditionInterface {
  4. /**
  5. * Applies relevant constraints for this condition to the injected contexts.
  6. *
  7. * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
  8. *
  9. * @return NULL
  10. */
  11. public function applyConstraints(array $contexts = array());
  12. /**
  13. * Removes constraints for this condition from the injected contexts.
  14. *
  15. * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
  16. *
  17. * @return NULL
  18. */
  19. public function removeConstraints(array $contexts = array());
  20. }