You are here

public function MockRouteProvider::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 33
Contains \Drupal\system\Tests\Routing\MockRouteProvider.

Class

MockRouteProvider
Easily configurable mock route provider.

Namespace

Drupal\system\Tests\Routing

Code

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