You are here

public static function RouteSubscriber::getSubscribedEvents in Entity Usage 8.2

Same name and namespace in other branches
  1. 8.4 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::getSubscribedEvents()
  2. 8 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::getSubscribedEvents()
  3. 8.3 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::getSubscribedEvents()

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 92

Class

RouteSubscriber
Registers a route for generic usage local tasks for entities.

Namespace

Drupal\entity_usage\Routing

Code

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