class KernelTestPageCacheRequestPolicy

Replaces the page_cache module's default request policy.

Hierarchy

Expanded class hierarchy of KernelTestPageCacheRequestPolicy

File

core/tests/Drupal/Tests/Traits/Core/Cache/PageCachePolicyTrait.php, line 56

Namespace

Drupal\Tests\Traits\Core\Cache
View source
class KernelTestPageCacheRequestPolicy extends PageCacheDefaultRequestPolicy {
  public function __construct(SessionConfigurationInterface $session_configuration) {
    $this->addPolicy(new NoSessionOpen($session_configuration));
  }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ChainRequestPolicy::$rules protected property A list of policy rules to apply when this policy is evaluated.
ChainRequestPolicy::addPolicy public function Add a policy to the list of policy rules. Overrides ChainRequestPolicyInterface::addPolicy
ChainRequestPolicy::check public function Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface::check
KernelTestPageCacheRequestPolicy::__construct public function Constructs the default page cache request policy. Overrides DefaultRequestPolicy::__construct
RequestPolicyInterface::ALLOW constant Allow delivery of cached pages.
RequestPolicyInterface::DENY constant Deny delivery of cached pages.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.