function RouteProviderLazyBuilder::getRoutesByPattern

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRoutesByPattern()
  2. 8.9.x core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRoutesByPattern()
  3. 10 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::getRoutesByPattern()

Overrides RouteProviderInterface::getRoutesByPattern

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 103

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);
}

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