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

Breadcrumb

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

function RouteProviderLazyBuilder::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 135

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public static function getSubscribedEvents() : array {
    $events[RoutingEvents::DYNAMIC][] = [
        'routerRebuilding',
        3000,
    ];
    $events[RoutingEvents::FINISHED][] = [
        'routerRebuildFinished',
        -3000,
    ];
    return $events;
}
RSS feed
Powered by Drupal