Implements a compound response policy.
When evaluating the compound policy, all of the contained rules are applied to the response. The overall result is computed according to the following rules:
<ol> <li>Returns static::DENY if any of the rules evaluated to static::DENY</li> <li>Otherwise returns NULL</li> </ol>
Hierarchy
- class \Drupal\Core\PageCache\ChainResponsePolicy implements ChainResponsePolicyInterface
File
- core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php, line 20
Namespace
Drupal\Core\PageCache
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ChainResponsePolicy::$rules | protected | property | A list of policy rules to apply when this policy is checked. |
ChainResponsePolicy::addPolicy | public | function | Add a policy to the list of policy rules. Overrides ChainResponsePolicyInterface::addPolicy |
ChainResponsePolicy::check | public | function | Determines whether it is save to store a page in the cache. Overrides ResponsePolicyInterface::check |
ResponsePolicyInterface::DENY | constant | Deny storage of a page in the cache. |
Please login to continue.