function 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(protected RouteProviderInterface $routeProvider, protected StateInterface $state) {
}

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