RouteProviderLazyBuilder::getRoutesByPattern

public RouteProviderLazyBuilder::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/RouteProviderLazyBuilder.php, line 92

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function getRoutesByPattern($pattern) {
  return $this->getRouteProvider()->getRoutesByPattern($pattern);
}
doc_Drupal
2016-10-29 09:39:22
Comments
Leave a Comment

Please login to continue.