RoutePreloader::onFinishedRoutes

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

public function onFinishedRoutes(Event $event) {
  $this->state->set('routing.non_admin_routes', $this->nonAdminRoutesOnRebuild);
  $this->nonAdminRoutesOnRebuild = array();
}
doc_Drupal
2016-10-29 09:39:11
Comments
Leave a Comment

Please login to continue.