You are here

public function DenyNodePreview::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\node\PageCache\DenyNodePreview.

Class

DenyNodePreview
Cache policy for node preview page.

Namespace

Drupal\node\PageCache

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}