You are here

public function RouteProviderLazyBuilder::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::__construct()
  2. 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::__construct()

RouteProviderLazyBuilder constructor.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service.

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route building service.

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 54

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function __construct(RouteProviderInterface $route_provider, RouteBuilderInterface $route_builder) {
  $this->routeProvider = $route_provider;
  $this->routeBuilder = $route_builder;
}