ChainResponsePolicy::$rules

A list of policy rules to apply when this policy is checked. Type: \Drupal\Core\PageCache\ResponsePolicyInterface[] File core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php, line 27 Class ChainResponsePolicy Implements a compound response policy. Namespace Drupal\Core\PageCache Code protected $rules = [];

ChainResponsePolicy

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/ChainResp

ChainRequestPolicyInterface::addPolicy

public ChainRequestPolicyInterface::addPolicy(RequestPolicyInterface $policy) Add a policy to the list of policy rules. Parameters \Drupal\Core\PageCache\RequestPolicyInterface $policy: The request policy rule to add. Return value $this File core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php, line 18 Class ChainRequestPolicyInterface Defines the interface for compound request policies. Namespace Drupal\Core\PageCache Code public function addPolicy(RequestPolicyInterface $

ChainRequestPolicyInterface

Defines the interface for compound request policies. Hierarchy interface \Drupal\Core\PageCache\RequestPolicyInterfaceinterface \Drupal\Core\PageCache\ChainRequestPolicyInterface File core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php, line 8 Namespace Drupal\Core\PageCache Members Name Modifiers Type Description ChainRequestPolicyInterface::addPolicy public function Add a policy to the list of policy rules. RequestPolicyInterface::ALLOW constant All

ChainRequestPolicy::check

public ChainRequestPolicy::check(Request $request) Determines whether delivery of a cached page should be attempted. Note that the request-policy check runs very early. In particular it is not possible to determine the logged in user. Also the current route match is not yet present when the check runs. Therefore, request-policy checks need to be designed in a way such that they do not depend on any other service and only take in account the information present on the incoming request. When matc

ChainRequestPolicy::addPolicy

public ChainRequestPolicy::addPolicy(RequestPolicyInterface $policy) Add a policy to the list of policy rules. Parameters \Drupal\Core\PageCache\RequestPolicyInterface $policy: The request policy rule to add. Return value $this Overrides ChainRequestPolicyInterface::addPolicy File core/lib/Drupal/Core/PageCache/ChainRequestPolicy.php, line 55 Class ChainRequestPolicy Implements a compound request policy. Namespace Drupal\Core\PageCache Code public function addPolicy(RequestPolicyInte

ChainRequestPolicy::$rules

A list of policy rules to apply when this policy is evaluated. Type: \Drupal\Core\PageCache\RequestPolicyInterface[] File core/lib/Drupal/Core/PageCache/ChainRequestPolicy.php, line 28 Class ChainRequestPolicy Implements a compound request policy. Namespace Drupal\Core\PageCache Code protected $rules = [];

ChainRequestPolicy

Implements a compound request policy. When evaluating the compound policy, all of the contained rules are applied to the request. 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>Returns static::ALLOW if at least one of the rules evaluated to static::ALLOW and none to static::DENY</li> <li>Otherwise returns NULL</li> </ol> Hierarchy class \Drupal\C

ChainedPlaceholderStrategy::processPlaceholders

public ChainedPlaceholderStrategy::processPlaceholders(array $placeholders) Processes placeholders to render them with different strategies. Parameters array $placeholders: The placeholders to process, with the keys being the markup for the placeholders and the values the corresponding render array describing the data to be rendered. Return value array The resulting placeholders, with a subset of the keys of $placeholders (and those being the markup for the placeholders) but with the correspo

ChainedPlaceholderStrategy::addPlaceholderStrategy

public ChainedPlaceholderStrategy::addPlaceholderStrategy(PlaceholderStrategyInterface $strategy) Adds a placeholder strategy to use. Parameters \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $strategy: The strategy to add to the placeholder strategies. File core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php, line 25 Class ChainedPlaceholderStrategy Renders placeholders using a chain of placeholder strategies. Namespace Drupal\Core\Render\Placeholder