Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DenyNoCacheRoutes.php

function 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 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;
}
RSS feed
Powered by Drupal