public function PathRootsSubscriber::__construct

public PathRootsSubscriber::__construct(StateInterface $state)

Constructs a new PathRootsSubscriber instance.

Parameters

\Drupal\Core\State\StateInterface $state: The state key value store.

File

core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 38

Class

PathRootsSubscriber
Provides all available first bits of all route paths.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(StateInterface $state) {
  $this->state = $state;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!PathRootsSubscriber.php/function/PathRootsSubscriber::__construct/8.1.x