function MockRouteProvider::getRoutesByPattern
Same name in other branches
- 9 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByPattern()
- 8.9.x core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByPattern()
- 10 core/modules/system/src/Tests/Routing/MockRouteProvider.php \Drupal\system\Tests\Routing\MockRouteProvider::getRoutesByPattern()
Overrides RouteProviderInterface::getRoutesByPattern
File
-
core/
modules/ system/ src/ Tests/ Routing/ MockRouteProvider.php, line 78
Class
- MockRouteProvider
- Easily configurable mock route provider.
Namespace
Drupal\system\Tests\RoutingCode
public function getRoutesByPattern($pattern) {
return new RouteCollection();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.