Version 1
[yaffs-website] / web / core / lib / Drupal / Core / PageCache / ChainRequestPolicyInterface.php
diff --git a/web/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php b/web/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
new file mode 100644 (file)
index 0000000..44c4a22
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+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);
+
+}