public RoutePreloader::onFinishedRoutes(Event $event)
Store the non admin routes in state when the route building is finished.
Parameters
\Symfony\Component\EventDispatcher\Event $event: The route finish event.
File
- core/lib/Drupal/Core/Routing/RoutePreloader.php, line 115
Class
- RoutePreloader
- Defines a class which preloads non-admin routes.
Namespace
Drupal\Core\Routing
Code
1 2 3 4 | public function onFinishedRoutes(Event $event ) { $this ->state->set( 'routing.non_admin_routes' , $this ->nonAdminRoutesOnRebuild); $this ->nonAdminRoutesOnRebuild = array (); } |
Please login to continue.