You are here

public function DenyAdminRoutes::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dynamic_page_cache/src/PageCache/ResponsePolicy/DenyAdminRoutes.php \Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes::__construct()

Constructs a deny admin route page cache policy.

Parameters

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

File

core/modules/dynamic_page_cache/src/PageCache/ResponsePolicy/DenyAdminRoutes.php, line 37
Contains \Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes.

Class

DenyAdminRoutes
Cache policy for routes with the '_admin_route' option set.

Namespace

Drupal\dynamic_page_cache\PageCache\ResponsePolicy

Code

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