Version 1
[yaffs-website] / web / modules / contrib / ctools / src / ConstraintConditionInterface.php
diff --git a/web/modules/contrib/ctools/src/ConstraintConditionInterface.php b/web/modules/contrib/ctools/src/ConstraintConditionInterface.php
new file mode 100644 (file)
index 0000000..236593a
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drupal\ctools;
+
+
+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 = array());
+
+  /**
+   * Removes constraints for this condition from the injected contexts.
+   *
+   * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts
+   *
+   * @return NULL
+   */
+  public function removeConstraints(array $contexts = array());
+
+}