public static function RouteSubscriber::getSubscribedEvents in Entity Usage 8.2
Same name and namespace in other branches
- 8.4 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::getSubscribedEvents()
- 8 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::getSubscribedEvents()
- 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\RoutingCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
99,
];
return $events;
}