function RoutePreloader::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RoutePreloader.php \Drupal\Core\Routing\RoutePreloader::__construct()
  2. 8.9.x core/lib/Drupal/Core/Routing/RoutePreloader.php \Drupal\Core\Routing\RoutePreloader::__construct()
  3. 10 core/lib/Drupal/Core/Routing/RoutePreloader.php \Drupal\Core\Routing\RoutePreloader::__construct()

Constructs a new RoutePreloader.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $routeProvider: The route provider.

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

File

core/lib/Drupal/Core/Routing/RoutePreloader.php, line 35

Class

RoutePreloader
Defines a class that can pre-load non-admin routes.

Namespace

Drupal\Core\Routing

Code

public function __construct(RouteProviderInterface $routeProvider, StateInterface $state) {
}

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