You are here

public function MockRouteProvider::getAllRoutes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getAllRoutes()
  2. 9 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getAllRoutes()

File

core/modules/system/src/Tests/Routing/MockRouteProvider.php, line 83

Class

MockRouteProvider
Easily configurable mock route provider.

Namespace

Drupal\system\Tests\Routing

Code

public function getAllRoutes() {
  return $this->routes
    ->all();
}