MenuLinkContent::getDescription

public MenuLinkContent::getDescription()

Gets the description of the menu link for the UI.

Return value

string The description to use on admin pages or as a title attribute.

Overrides MenuLinkContentInterface::getDescription

File

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

Class

MenuLinkContent
Defines the menu link content entity class.

Namespace

Drupal\menu_link_content\Entity

Code

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

Please login to continue.