public function RoutePreloader::onFinishedRoutes in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/RoutePreloader.php \Drupal\Core\Routing\RoutePreloader::onFinishedRoutes()
Store the non admin routes in state when the route building is finished.
File
- core/
lib/ Drupal/ Core/ Routing/ RoutePreloader.php, line 112
Class
- RoutePreloader
- Defines a class which preloads non-admin routes.
Namespace
Drupal\Core\RoutingCode
public function onFinishedRoutes() {
$this->state
->set('routing.non_admin_routes', $this->nonAdminRoutesOnRebuild);
$this->nonAdminRoutesOnRebuild = [];
}