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
- interface \Drupal\Core\PageCache\RequestPolicyInterface
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. |
Please login to continue.