RoutePreloader::__construct

public RoutePreloader::__construct(RouteProviderInterface $route_provider, StateInterface $state, CacheBackendInterface $cache)

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 59

Class

RoutePreloader
Defines a class which preloads non-admin routes.

Namespace

Drupal\Core\Routing

Code

public function __construct(RouteProviderInterface $route_provider, StateInterface $state, CacheBackendInterface $cache) {
  $this->routeProvider = $route_provider;
  $this->state = $state;
  $this->cache = $cache;
}
doc_Drupal
2016-10-29 09:39:11
Comments
Leave a Comment

Please login to continue.