function TestRouteSubscriber::routesFromCollection
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteSubscriber::routesFromCollection()
- 10 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteSubscriber::routesFromCollection()
- 11.x core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\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.