Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocalTaskDefault.php

function LocalTaskDefault::routeProvider

Returns the route provider.

Return value

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

File

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

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal