function DenyNodePreview::__construct
Same name in other branches
- 9 core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::__construct()
- 10 core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::__construct()
- 11.x core/modules/node/src/PageCache/DenyNodePreview.php \Drupal\node\PageCache\DenyNodePreview::__construct()
Constructs a deny node preview page cache policy.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
File
-
core/
modules/ node/ src/ PageCache/ DenyNodePreview.php, line 31
Class
- DenyNodePreview
- Cache policy for node preview page.
Namespace
Drupal\node\PageCacheCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.