public function PathRootsSubscriber::onRouteFinished

public PathRootsSubscriber::onRouteFinished()

File

core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 59

Class

PathRootsSubscriber
Provides all available first bits of all route paths.

Namespace

Drupal\Core\EventSubscriber

Code

public function onRouteFinished() {
  $this->state->set('router.path_roots', array_keys($this->pathRoots));
  unset($this->pathRoots);
}

© 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!EventSubscriber!PathRootsSubscriber.php/function/PathRootsSubscriber::onRouteFinished/8.1.x