Cache policy for node preview page.
This policy rule denies caching of responses generated by the entity.node.preview route.
Hierarchy
- class \Drupal\node\PageCache\DenyNodePreview implements ResponsePolicyInterface
File
- core/modules/node/src/PageCache/DenyNodePreview.php, line 16
Namespace
Drupal\node\PageCache
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DenyNodePreview::$routeMatch | protected | property | The current route match. |
DenyNodePreview::check | public | function | Determines whether it is save to store a page in the cache. Overrides ResponsePolicyInterface::check |
DenyNodePreview::__construct | public | function | Constructs a deny node preview page cache policy. |
ResponsePolicyInterface::DENY | constant | Deny storage of a page in the cache. |
Please login to continue.