You are here

public function RouteNameResponseSubscriber::__construct in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/RouteNameResponseSubscriber.php \Drupal\page_manager\EventSubscriber\RouteNameResponseSubscriber::__construct()

Constructs a new RouteNameResponseSubscriber.

Parameters

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

File

src/EventSubscriber/RouteNameResponseSubscriber.php, line 34
Contains \Drupal\page_manager\EventSubscriber\RouteNameResponseSubscriber.

Class

RouteNameResponseSubscriber
Adds the route name as a cache tag to all cacheable responses.

Namespace

Drupal\page_manager\EventSubscriber

Code

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