protected function LocalTaskDefault::routeProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/LocalTaskDefault.php \Drupal\Core\Menu\LocalTaskDefault::routeProvider()
Returns the route provider.
Return value
\Drupal\Core\Routing\RouteProviderInterface The route provider.
File
- core/
lib/ Drupal/ Core/ Menu/ LocalTaskDefault.php, line 141 - Contains \Drupal\Core\Menu\LocalTaskDefault.
Class
- LocalTaskDefault
- Default object used for LocalTaskPlugins.
Namespace
Drupal\Core\MenuCode
protected function routeProvider() {
if (!$this->routeProvider) {
$this->routeProvider = \Drupal::service('router.route_provider');
}
return $this->routeProvider;
}