public function RouteProvider::getRoutesByPattern
public RouteProvider::getRoutesByPattern($pattern)
Get all routes which match a certain pattern.
Parameters
string $pattern: The route pattern to search for (contains {} as placeholders).
Return value
\Symfony\Component\Routing\RouteCollection Returns a route collection of matching routes.
Overrides RouteProviderInterface::getRoutesByPattern
File
- core/lib/Drupal/Core/Routing/RouteProvider.php, line 310
Class
- RouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\RoutingCode
public function getRoutesByPattern($pattern) { $path = RouteCompiler::getPatternOutline($pattern); return $this->getRoutesByPath($path); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RouteProvider.php/function/RouteProvider::getRoutesByPattern/8.1.x