public function 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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RoutePreloader.php/function/RoutePreloader::onFinishedRoutes/8.1.x