public static function MenuRouterRebuildSubscriber::getSubscribedEvents in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber::getSubscribedEvents()
- 9 core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ MenuRouterRebuildSubscriber.php, line 104
Class
- MenuRouterRebuildSubscriber
- Rebuilds the default menu links and runs menu-specific code if necessary.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() : array {
// Run after CachedRouteRebuildSubscriber.
$events[RoutingEvents::FINISHED][] = [
'onRouterRebuild',
100,
];
return $events;
}