You are here

public function MockRouteProvider::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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;
}