public static function RouteSubscriberBase::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents()
6 calls to RouteSubscriberBase::getSubscribedEvents()
- AdminRouteSubscriber::getSubscribedEvents in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- ContentModerationRouteSubscriber::getSubscribedEvents in core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- ContentTranslationRouteSubscriber::getSubscribedEvents in core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- NodeAdminRouteSubscriber::getSubscribedEvents in core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- RouteSubscriber::getSubscribedEvents in core/
modules/ views/ src/ EventSubscriber/ RouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
7 methods override RouteSubscriberBase::getSubscribedEvents()
- AdminRouteSubscriber::getSubscribedEvents in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- ContentModerationRouteSubscriber::getSubscribedEvents in core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- ContentTranslationRouteSubscriber::getSubscribedEvents in core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- NodeAdminRouteSubscriber::getSubscribedEvents in core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- RouteSubscriber::getSubscribedEvents in core/
modules/ views/ src/ EventSubscriber/ RouteSubscriber.php - Returns an array of event names this subscriber wants to listen to.
File
- core/
lib/ Drupal/ Core/ Routing/ RouteSubscriberBase.php, line 24
Class
- RouteSubscriberBase
- Provides a base implementation for RouteSubscriber.
Namespace
Drupal\Core\RoutingCode
public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER] = 'onAlterRoutes';
return $events;
}