function MockRouteProvider::getRouteAliases

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::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/modules/system/src/Tests/Routing/MockRouteProvider.php, line 99

Class

MockRouteProvider
Easily configurable mock route provider.

Namespace

Drupal\system\Tests\Routing

Code

public function getRouteAliases(string $route_name) : iterable {
  return new RouteCollection();
}

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