You are here

public function MenuLinkInterface::getTitle in Drupal 9

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

Returns the localized title to be shown for this link.

Return value

string The title of the menu link.

5 methods override MenuLinkInterface::getTitle()
InaccessibleMenuLink::getTitle in core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
Returns the localized title to be shown for this link.
MenuLinkContent::getTitle in core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
Returns the localized title to be shown for this link.
MenuLinkDefault::getTitle in core/lib/Drupal/Core/Menu/MenuLinkDefault.php
Returns the localized title to be shown for this link.
MenuLinkMock::getTitle in core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php
Returns the localized title to be shown for this link.
ViewsMenuLink::getTitle in core/modules/views/src/Plugin/Menu/ViewsMenuLink.php
Returns the localized title to be shown for this link.

File

core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 28

Class

MenuLinkInterface
Defines an interface for classes providing a type of menu link.

Namespace

Drupal\Core\Menu

Code

public function getTitle();