W3cubDocs

/Drupal 8

public function DenyNoCacheRoutes::__construct

public DenyNoCacheRoutes::__construct(RouteMatchInterface $route_match)

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 31

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!PageCache!ResponsePolicy!DenyNoCacheRoutes.php/function/DenyNoCacheRoutes::__construct/8.1.x