You are here

public function MenuLinkInterface::getTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getTitle()
  2. 9 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.

1 method overrides MenuLinkInterface::getTitle()
MenuLinkMock::getTitle in core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.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();