public static function RouteSubscriber::getSubscribedEvents in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
- 8.2 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
- 8.3 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
- 8.4 src/Routing/RouteSubscriber.php \Drupal\lightning_core\Routing\RouteSubscriber::getSubscribedEvents()
Overrides RouteSubscriberBase::getSubscribedEvents
File
- src/
Routing/ RouteSubscriber.php, line 100
Class
- RouteSubscriber
- Dynamically alters various routes.
Namespace
Drupal\lightning_core\RoutingCode
public static function getSubscribedEvents() {
$events = parent::getSubscribedEvents();
// We need to run after Field UI.
$events[RoutingEvents::ALTER] = [
'onAlterRoutes',
-110,
];
return $events;
}