summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
blob: e8548df7e59bdee6d323482ae79cd56fc530e4a9 (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
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);

}