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

Breadcrumb

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

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

Code

public function getTitle() {
    return (string) $this->pluginDefinition['title'];
}
RSS feed
Powered by Drupal