function 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.
1 method overrides LocalActionManagerInterface::getTitle()
- LocalActionManager::getTitle in core/
lib/ Drupal/ Core/ Menu/ LocalActionManager.php - Gets the title for a local action.
File
-
core/
lib/ Drupal/ Core/ Menu/ LocalActionManagerInterface.php, line 29
Class
- LocalActionManagerInterface
- Manages discovery and instantiation of menu local action plugins.
Namespace
Drupal\Core\MenuCode
public function getTitle(LocalActionInterface $local_action);