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