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

Breadcrumb

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

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\Menu

Code

public function getTitle(LocalActionInterface $local_action);

API Navigation

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