function MockRouteProvider::__construct
Same name in other branches
- 9 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::__construct()
- 8.9.x core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::__construct()
- 10 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::__construct()
Constructs a new MockRouteProvider.
Parameters
\Symfony\Component\Routing\RouteCollection $routes: The route collection to use for this provider.
File
-
core/
modules/ system/ src/ Tests/ Routing/ MockRouteProvider.php, line 30
Class
- MockRouteProvider
- Easily configurable mock route provider.
Namespace
Drupal\system\Tests\RoutingCode
public function __construct(RouteCollection $routes) {
$this->routes = $routes;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.