You are here

public function DenyNoCacheRoutes::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes::__construct()

Constructs a deny node preview page cache policy.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php, line 36
Contains \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes.

Class

DenyNoCacheRoutes
Cache policy for routes with the 'no_cache' option set.

Namespace

Drupal\Core\PageCache\ResponsePolicy

Code

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