function DenyNodePreview::check
Same name in other branches
- 9 core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::check()
- 10 core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::check()
- 11.x core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::check()
Overrides ResponsePolicyInterface::check
File
-
core/
modules/ node/ src/ PageCache/ DenyNodePreview.php, line 38
Class
- DenyNodePreview
- Cache policy for node preview page.
Namespace
Drupal\node\PageCacheCode
public function check(Response $response, Request $request) {
if ($this->routeMatch
->getRouteName() === 'entity.node.preview') {
return static::DENY;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.