class KernelTestPageCacheRequestPolicy
Replaces the page_cache module's default request policy.
Hierarchy
- class \Drupal\Core\PageCache\ChainRequestPolicy implements \Drupal\Core\PageCache\ChainRequestPolicyInterface
- class \Drupal\Core\PageCache\DefaultRequestPolicy extends \Drupal\Core\PageCache\ChainRequestPolicy
- class \Drupal\Tests\Traits\Core\Cache\KernelTestPageCacheRequestPolicy extends \Drupal\Core\PageCache\DefaultRequestPolicy
- class \Drupal\Core\PageCache\DefaultRequestPolicy extends \Drupal\Core\PageCache\ChainRequestPolicy
Expanded class hierarchy of KernelTestPageCacheRequestPolicy
File
-
core/
tests/ Drupal/ Tests/ Traits/ Core/ Cache/ PageCachePolicyTrait.php, line 56
Namespace
Drupal\Tests\Traits\Core\CacheView 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.