You are here

interface ChainRequestPolicyInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php \Drupal\Core\PageCache\ChainRequestPolicyInterface

Defines the interface for compound request policies.

Hierarchy

Expanded class hierarchy of ChainRequestPolicyInterface

All classes that implement ChainRequestPolicyInterface

File

core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php, line 13
Contains \Drupal\Core\PageCache\ChainRequestPolicyInterface.

Namespace

Drupal\Core\PageCache
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ChainRequestPolicyInterface::addPolicy public function Add a policy to the list of policy rules. 1
RequestPolicyInterface::ALLOW constant Allow delivery of cached pages.
RequestPolicyInterface::check public function Determines whether delivery of a cached page should be attempted. 5
RequestPolicyInterface::DENY constant Deny delivery of cached pages.