function TestRouteSubscriber::routesFromArray

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 365

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'),
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.