public function ChainResponsePolicy::check in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/PageCache/ChainResponsePolicy.php \Drupal\Core\PageCache\ChainResponsePolicy::check()
- 8 core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php \Drupal\Core\ProxyClass\PageCache\ChainResponsePolicy::check()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php \Drupal\Core\ProxyClass\PageCache\ChainResponsePolicy::check()
Determines whether it is save to store a page in the cache.
Parameters
\Symfony\Component\HttpFoundation\Response $response: The response which is about to be sent to the client.
\Symfony\Component\HttpFoundation\Request $request: The request object.
Return value
string|NULL Either static::DENY or NULL. Calling code may attempt to store a page in the cache unless static::DENY is returned. Returns NULL if the policy policy is not specified for the given response.
Overrides ResponsePolicyInterface::check
File
- core/
lib/ Drupal/ Core/ ProxyClass/ PageCache/ ChainResponsePolicy.php, line 77 - Contains \Drupal\Core\ProxyClass\PageCache\ChainResponsePolicy.
Class
- ChainResponsePolicy
- Provides a proxy class for \Drupal\Core\PageCache\ChainResponsePolicy.
Namespace
Drupal\Core\ProxyClass\PageCacheCode
public function check(\Symfony\Component\HttpFoundation\Response $response, \Symfony\Component\HttpFoundation\Request $request) {
return $this
->lazyLoadItself()
->check($response, $request);
}