You are here

public function TestRouteSubscriber::routesFromArray in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Routing

Code

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