function RouteSubscriberBase::getSubscribedEvents
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents()
- 8.9.x core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents()
- 11.x core/lib/Drupal/Core/Routing/RouteSubscriberBase.php \Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents()
9 calls to RouteSubscriberBase::getSubscribedEvents()
- AdminRouteSubscriber::getSubscribedEvents in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - ContentModerationRouteSubscriber::getSubscribedEvents in core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php - ContentTranslationRouteSubscriber::getSubscribedEvents in core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php - MenuLinksetRoutes::getSubscribedEvents in core/
modules/ system/ src/ Routing/ MenuLinksetRoutes.php - NodeAdminRouteSubscriber::getSubscribedEvents in core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php
10 methods override RouteSubscriberBase::getSubscribedEvents()
- AdminRouteSubscriber::getSubscribedEvents in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - ContentModerationRouteSubscriber::getSubscribedEvents in core/
modules/ content_moderation/ src/ Routing/ ContentModerationRouteSubscriber.php - ContentTranslationRouteSubscriber::getSubscribedEvents in core/
modules/ content_translation/ src/ Routing/ ContentTranslationRouteSubscriber.php - MenuLinksetRoutes::getSubscribedEvents in core/
modules/ system/ src/ Routing/ MenuLinksetRoutes.php - NodeAdminRouteSubscriber::getSubscribedEvents in core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php
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() : array {
$events[RoutingEvents::ALTER] = 'onAlterRoutes';
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.