You are here

public function TestRouteSubscriber::routesFromArray in Drupal 8

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 360
Contains \Drupal\Tests\Core\Routing\RouteBuilderTest.

Class

TestRouteSubscriber
Provides a callback for route definition.

Namespace

Drupal\Tests\Core\Routing

Code

public function routesFromArray() {
  return [
    'test_route.1' => new Route('/test-route/1'),
  ];
}