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));
  $this->pathRoots = [];
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.