You are here

protected function TestRouteBuilder::getRouteDefinitions in Drupal 8

Retrieves all defined routes from .routing.yml files.

Return value

array The defined routes, keyed by provider.

Overrides RouteBuilder::getRouteDefinitions

File

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

Class

TestRouteBuilder
Extends the core route builder with a setter method for the YAML discovery.

Namespace

Drupal\Tests\Core\Routing

Code

protected function getRouteDefinitions() {
  return $this->yamlDiscovery
    ->findAll();
}