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.