function MockRouteProvider::getRoutesByNames
Same name in other branches
- 8.9.x core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByNames()
- 10 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByNames()
- 11.x core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByNames()
Overrides RouteProviderInterface::getRoutesByNames
1 call to MockRouteProvider::getRoutesByNames()
- MockRouteProvider::getRouteByName in core/
modules/ system/ src/ Tests/ Routing/ MockRouteProvider.php - Find the route using the provided route name.
File
-
core/
modules/ system/ src/ Tests/ Routing/ MockRouteProvider.php, line 64
Class
- MockRouteProvider
- Easily configurable mock route provider.
Namespace
Drupal\system\Tests\RoutingCode
public function getRoutesByNames($names) {
$routes = [];
foreach ($names as $name) {
$routes[] = $this->routes
->get($name);
}
return $routes;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.