You are here

public function TestRouteSubscriber::routesFromCollection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteSubscriber::routesFromCollection()

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 318
Contains \Drupal\Tests\Core\Routing\RouteBuilderTest.

Class

TestRouteSubscriber
Provides a callback for route definition.

Namespace

Drupal\Tests\Core\Routing

Code

public function routesFromCollection() {
  $collection = new RouteCollection();
  $collection
    ->add('test_route.2', new Route('/test-route/2'));
  return $collection;
}