function RouteProviderLazyBuilder::getRouteAliases
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRouteAliases()
Gets aliases for a route name.
The aliases can be found using the ::getAliases() method of the returned route collection.
Parameters
string $route_name: The route name.
Return value
iterable<\Symfony\Component\Routing\Alias> Iterable list of aliases for the given route name.
Overrides RouteProviderInterface::getRouteAliases
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php, line 159
Class
- RouteProviderLazyBuilder
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
public function getRouteAliases(string $route_name) : iterable {
return $this->getRouteProvider()
->getRouteAliases($route_name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.