You are here

public static function RouteProviderLazyBuilder::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getSubscribedEvents()
  2. 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::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;
}