function RouteSubscriber::getSubscribedEvents

Same name in other branches
  1. 5.x src/Routing/RouteSubscriber.php \Drupal\devel\Routing\RouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 210

Class

RouteSubscriber
Subscriber for Devel routes.

Namespace

Drupal\devel\Routing

Code

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