You are here

public function Link::getMenuName in Colossal Menu 2.x

Same name and namespace in other branches
  1. 8 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 286

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

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