PathRootsSubscriber::$pathRoots

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::pathRoots
  2. 10 core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php \Drupal\Core\EventSubscriber\PathRootsSubscriber::pathRoots
  3. 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\EventSubscriber

Code

protected $pathRoots = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.