MenuLinkContent::getMenuName

public MenuLinkContent::getMenuName()

Gets the menu name of the custom menu link.

Return value

string The menu ID.

Overrides MenuLinkContentInterface::getMenuName

File

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

Class

MenuLinkContent
Defines the menu link content entity class.

Namespace

Drupal\menu_link_content\Entity

Code

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

Please login to continue.