You are here

public static function RouteSubscriber::getSubscribedEvents in Workspace 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 91

Class

RouteSubscriber
Subscriber for Workspace routes.

Namespace

Drupal\workspace\Routing

Code

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