function LocalActionManagerInterface::getTitle

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php \Drupal\Core\Menu\LocalActionManagerInterface::getTitle()
  2. 8.9.x core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php \Drupal\Core\Menu\LocalActionManagerInterface::getTitle()
  3. 11.x core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php \Drupal\Core\Menu\LocalActionManagerInterface::getTitle()

Gets the title for a local action.

Parameters

\Drupal\Core\Menu\LocalActionInterface $local_action: An object to get the title from.

Return value

string The title (already localized).

Throws

\BadMethodCallException If the plugin does not implement the getTitle() method.

File

core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php, line 29

Class

LocalActionManagerInterface
Manages discovery and instantiation of menu local action plugins.

Namespace

Drupal\Core\Menu

Code

public function getTitle(LocalActionInterface $local_action);

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