public function PathRootsSubscriber::onRouteFinished in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::onRouteFinished()
- 9 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\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\EventSubscriberCode
public function onRouteFinished() {
$this->state
->set('router.path_roots', array_keys($this->pathRoots));
$this->pathRoots = [];
}