You are here

public static function RouteSubscriber::getSubscribedEvents in Display Suite 8.4

Same name in this branch
  1. 8.4 src/Routing/RouteSubscriber.php \Drupal\ds\Routing\RouteSubscriber::getSubscribedEvents()
  2. 8.4 modules/ds_devel/src/Routing/RouteSubscriber.php \Drupal\ds_devel\Routing\RouteSubscriber::getSubscribedEvents()
  3. 8.4 modules/ds_extras/src/EventSubscriber/RouteSubscriber.php \Drupal\ds_extras\EventSubscriber\RouteSubscriber::getSubscribedEvents()
Same name and namespace in other branches
  1. 8.2 modules/ds_devel/src/Routing/RouteSubscriber.php \Drupal\ds_devel\Routing\RouteSubscriber::getSubscribedEvents()
  2. 8.3 modules/ds_devel/src/Routing/RouteSubscriber.php \Drupal\ds_devel\Routing\RouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

modules/ds_devel/src/Routing/RouteSubscriber.php, line 69

Class

RouteSubscriber
Subscriber for Devel routes.

Namespace

Drupal\ds_devel\Routing

Code

public static function getSubscribedEvents() {
  $events = parent::getSubscribedEvents();
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    100,
  ];
  return $events;
}