W3cubDocs

/Drupal 8

interface RequestPolicyInterface

Defines the interface for request policy implementations.

The request policy is evaluated in order to determine whether delivery of a cached page should be attempted. The caller should do so if static::ALLOW is returned from the check() method.

Hierarchy

File

core/lib/Drupal/Core/PageCache/RequestPolicyInterface.php, line 14

Namespace

Drupal\Core\PageCache

Members

Name Modifiers Type Description
RequestPolicyInterface::ALLOW constant Allow delivery of cached pages.
RequestPolicyInterface::check public function Determines whether delivery of a cached page should be attempted.
RequestPolicyInterface::DENY constant Deny delivery of cached pages.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!PageCache!RequestPolicyInterface.php/interface/RequestPolicyInterface/8.1.x