You are here

public static function RouteSubscriber::getSubscribedEvents in Sitewide Alert 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 44

Class

RouteSubscriber
Class RouteSubscriber.

Namespace

Drupal\sitewide_alert\Routing

Code

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