You are here

public function Link::getMenuName in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::getMenuName()

Returns the menu name of the menu link.

Return value

string The menu name of the menu link.

Overrides MenuLinkInterface::getMenuName

3 calls to Link::getMenuName()
Link::getDeleteRoute in src/Entity/Link.php
Returns route information for a route to delete the menu link.
Link::getEditRoute in src/Entity/Link.php
Returns route information for a custom edit form for the menu link.
Link::urlRouteParameters in src/Entity/Link.php
Gets an array of placeholders for this entity.

File

src/Entity/Link.php, line 306

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

public function getMenuName() {
  return $this
    ->get('menu')->entity
    ->id();
}