You are here

public static function RouteSubscriber::getSubscribedEvents in Workflow 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 106

Class

RouteSubscriber
Subscriber for Workflow routes.

Namespace

Drupal\workflow\Routing

Code

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