LocalTaskDefault::routeProvider

protected LocalTaskDefault::routeProvider()

Returns the route provider.

Return value

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

File

core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 136

Class

LocalTaskDefault
Default object used for LocalTaskPlugins.

Namespace

Drupal\Core\Menu

Code

protected function routeProvider() {
  if (!$this->routeProvider) {
    $this->routeProvider = \Drupal::service('router.route_provider');
  }
  return $this->routeProvider;
}
doc_Drupal
2016-10-29 09:24:45
Comments
Leave a Comment

Please login to continue.