You are here

public function LocalActionDefault::getRouteName in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getRouteName()

Get the route name from the settings.

Return value

string The name of the route this action links to.

Overrides LocalActionInterface::getRouteName

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

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 62

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

Code

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