/** * Constructs a new RouteNameResponseSubscriber. * * @param \Drupal\Core\Routing\StackedRouteMatchInterface $route_match * The current route match. */ public function __construct(StackedRouteMatchInterface $route_match) { $this->routeMatch = $route_match->getMasterRouteMatch(); }