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

1
2
3
public function getTitle() {
  return $this->get('title')->value;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.