You are here

public function PathRootsSubscriber::onRouteFinished in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::onRouteFinished()

File

core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 64
Contains \Drupal\Core\EventSubscriber\PathRootsSubscriber.

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);
}