Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PathRootsSubscriber.php

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 = [];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal