You are here

public static function RouteNameResponseSubscriber::getSubscribedEvents in Page Manager 8

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

File

src/EventSubscriber/RouteNameResponseSubscriber.php, line 59
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 static function getSubscribedEvents() {

  // Run before dynamic_page_cache_subscriber:onResponse.
  $events[KernelEvents::RESPONSE][] = [
    'onResponse',
    101,
  ];
  return $events;
}