public function RoutePreloader::onFinishedRoutes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
Parameters
\Symfony\Component\EventDispatcher\Event $event: The route finish event.
File
- core/
lib/ Drupal/ Core/ Routing/ RoutePreloader.php, line 120 - Contains \Drupal\Core\Routing\RoutePreloader.
Class
- RoutePreloader
- Defines a class which preloads non-admin routes.
Namespace
Drupal\Core\RoutingCode
public function onFinishedRoutes(Event $event) {
$this->state
->set('routing.non_admin_routes', $this->nonAdminRoutesOnRebuild);
$this->nonAdminRoutesOnRebuild = array();
}