public function TestRouteSubscriber::routesFromCollection in Drupal 8
File
- core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteBuilderTest.php, line 366 - 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;
}