public function TestRouteSubscriber::routesFromArray 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::routesFromArray()
File
- core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteBuilderTest.php, line 313 - Contains \Drupal\Tests\Core\Routing\RouteBuilderTest.
Class
- TestRouteSubscriber
- Provides a callback for route definition.
Namespace
Drupal\Tests\Core\RoutingCode
public function routesFromArray() {
return array(
'test_route.1' => new Route('/test-route/1'),
);
}