summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/PageCache/ChainResponsePolicyInterface.php
blob: 5018f19abf41d8daa571189ba88f1d13f4a035ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);

}