function Router::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::__construct()
- 10 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::__construct()
- 9 core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::__construct()
- 8.9.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::__construct()
Constructs a new Router.
Parameters
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path stack.
Overrides UrlMatcher::__construct
File
-
core/
lib/ Drupal/ Core/ Routing/ Router.php, line 69
Class
- Router
- Router implementation in Drupal.
Namespace
Drupal\Core\RoutingCode
public function __construct(RouteProviderInterface $route_provider, CurrentPathStack $current_path) {
parent::__construct($current_path);
$this->routeProvider = $route_provider;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.