Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RouteSubscriberBase.php

function RouteSubscriberBase::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

16 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.
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.
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.

... See full list

9 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.
MenuLinksetRoutes::getSubscribedEvents in core/modules/system/src/Routing/MenuLinksetRoutes.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.

... 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() : array {
    $events[RoutingEvents::ALTER] = 'onAlterRoutes';
    return $events;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal