function MockRouteProvider::getRouteAliases

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.