function LocalTaskDefault::getRouteName

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/LocalTaskDefault.php \Drupal\Core\Menu\LocalTaskDefault::getRouteName()
  2. 10 core/lib/Drupal/Core/Menu/LocalTaskDefault.php \Drupal\Core\Menu\LocalTaskDefault::getRouteName()
  3. 11.x core/lib/Drupal/Core/Menu/LocalTaskDefault.php \Drupal\Core\Menu\LocalTaskDefault::getRouteName()

Overrides LocalTaskInterface::getRouteName

1 call to LocalTaskDefault::getRouteName()
LocalTaskDefault::getRouteParameters in core/lib/Drupal/Core/Menu/LocalTaskDefault.php
Returns the route parameters needed to render a link for the local task.

File

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

Class

LocalTaskDefault
Default object used for LocalTaskPlugins.

Namespace

Drupal\Core\Menu

Code

public function getRouteName() {
    return $this->pluginDefinition['route_name'];
}

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