RouteProviderLazyBuilder::getRouteProvider

protected RouteProviderLazyBuilder::getRouteProvider()

Gets the real route provider service and rebuilds the router id necessary.

Return value

\Drupal\Core\Routing\RouteProviderInterface The route provider service.

File

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

Class

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

Namespace

Drupal\Core\Routing

Code

protected function getRouteProvider() {
  if (!$this->rebuilt) {
    $this->routeBuilder->rebuild();
    $this->rebuilt = TRUE;
  }
  return $this->routeProvider;
}
doc_Drupal
2016-10-29 09:39:22
Comments
Leave a Comment

Please login to continue.