function DenyNoCacheRoutes::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes::__construct()
- 10 core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes::__construct()
- 11.x 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 31
Class
- DenyNoCacheRoutes
- Cache policy for routes with the 'no_cache' option set.
Namespace
Drupal\Core\PageCache\ResponsePolicyCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.