PathRootsSubscriber::$pathRoots
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::pathRoots
- 8.9.x core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::pathRoots
- 11.x core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::pathRoots
Stores the path roots available in the router.
A path root is the first virtual directory of a path, like 'admin', 'node' or 'user'.
Type: array
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ PathRootsSubscriber.php, line 23
Class
- PathRootsSubscriber
- Provides all available first bits of all route paths.
Namespace
Drupal\Core\EventSubscriberCode
protected $pathRoots = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.