You are here

public static function RouteSubscriberBase::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 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
ContentModerationRouteSubscriber::getSubscribedEvents in core/modules/content_moderation/src/Routing/ContentModerationRouteSubscriber.php
ContentTranslationRouteSubscriber::getSubscribedEvents in core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
NodeAdminRouteSubscriber::getSubscribedEvents in core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php
RouteSubscriber::getSubscribedEvents in core/modules/views/src/EventSubscriber/RouteSubscriber.php

... See full list

7 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
NodeAdminRouteSubscriber::getSubscribedEvents in core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php
RouteSubscriber::getSubscribedEvents in core/modules/views/src/EventSubscriber/RouteSubscriber.php

... See full list

File

core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 24

Class

RouteSubscriberBase
Provides a base implementation for RouteSubscriber.

Namespace

Drupal\Core\Routing

Code

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