function MenuLinkDefault::getTitle
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getTitle()
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getTitle()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::getTitle()
Overrides MenuLinkInterface::getTitle
1 method overrides MenuLinkDefault::getTitle()
- LoginLogoutMenuLink::getTitle in core/
modules/ user/ src/ Plugin/ Menu/ LoginLogoutMenuLink.php - Returns the localized title to be shown for this link.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkDefault.php, line 65
Class
- MenuLinkDefault
- Provides a default implementation for menu link plugins.
Namespace
Drupal\Core\MenuCode
public function getTitle() {
return (string) $this->pluginDefinition['title'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.