public function RoutePreloader::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/RoutePreloader.php \Drupal\Core\Routing\RoutePreloader::__construct()
Constructs a new RoutePreloader.
Parameters
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
\Drupal\Core\State\StateInterface $state: The state key value store.
\Drupal\Core\Cache\CacheBackendInterface $cache:
File
- core/
lib/ Drupal/ Core/ Routing/ RoutePreloader.php, line 64 - Contains \Drupal\Core\Routing\RoutePreloader.
Class
- RoutePreloader
- Defines a class which preloads non-admin routes.
Namespace
Drupal\Core\RoutingCode
public function __construct(RouteProviderInterface $route_provider, StateInterface $state, CacheBackendInterface $cache) {
$this->routeProvider = $route_provider;
$this->state = $state;
$this->cache = $cache;
}