public function TestRouteSubscriber::routesFromCollection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\RoutingCode
public function routesFromCollection() {
$collection = new RouteCollection();
$collection
->add('test_route.2', new Route('/test-route/2'));
return $collection;
}