You are here

public function MockRouteProvider::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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 28

Class

MockRouteProvider
Easily configurable mock route provider.

Namespace

Drupal\system\Tests\Routing

Code

public function __construct(RouteCollection $routes) {
  $this->routes = $routes;
}