W3cubDocs

/Drupal 8

public function MenuLinkBase::getMenuName

public MenuLinkBase::getMenuName()

Returns the menu name of the menu link.

Return value

string The menu name of the menu link.

Overrides MenuLinkInterface::getMenuName

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 38

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getMenuName() {
  return $this->pluginDefinition['menu_name'];
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkBase.php/function/MenuLinkBase::getMenuName/8.1.x