function RouteProviderLazyBuilder::getRouteByName

File

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

Class

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

Namespace

Drupal\Core\Routing

Code

public function getRouteByName($name) {
  return $this->getRouteProvider()
    ->getRouteByName($name);
}

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