MenuLinkContent::getTitle

public MenuLinkContent::getTitle()

Gets the title of the menu link.

Return value

string The title of the link.

Overrides MenuLinkContentInterface::getTitle

File

core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 70

Class

MenuLinkContent
Defines the menu link content entity class.

Namespace

Drupal\menu_link_content\Entity

Code

public function getTitle() {
  return $this->get('title')->value;
}
doc_Drupal
2016-10-29 09:26:32
Comments
Leave a Comment

Please login to continue.