summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php')
-rw-r--r--core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php b/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
new file mode 100644
index 0000000..e8548df
--- /dev/null
+++ b/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\PageCache\ChainRequestPolicyInterface.
+ */
+
+namespace Drupal\Core\PageCache;
+
+/**
+ * Defines the interface for compound request policies.
+ */
+interface ChainRequestPolicyInterface extends RequestPolicyInterface {
+
+ /**
+ * Add a policy to the list of policy rules.
+ *
+ * @param \Drupal\Core\PageCache\RequestPolicyInterface $policy
+ * The request policy rule to add.
+ *
+ * @return $this
+ */
+ public function addPolicy(RequestPolicyInterface $policy);
+
+}