function TestRouteSubscriber::routesFromCollection
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteBuilderTest.php, line 366
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.