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 $

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 = [];

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

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

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

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::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

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

Renders placeholders using a chain of placeholder strategies. Hierarchy class \Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy implements PlaceholderStrategyInterface File core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php, line 8 Namespace Drupal\Core\Render\Placeholder Members Name Modifiers Type Description ChainedPlaceholderStrategy::$placeholderStrategies protected property An ordered list of placeholder strategy services. ChainedPlac