You are here

public function ToolbarMenuElement::menu in Toolbar Menu 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ToolbarMenuElement.php \Drupal\toolbar_menu\Entity\ToolbarMenuElement::menu()

Get the menu 'menu' property.

Return value

mixed|null The menu property.

2 calls to ToolbarMenuElement::menu()
ToolbarMenuElement::getDisplayLabel in src/Entity/ToolbarMenuElement.php
Get the displayed label.
ToolbarMenuElement::loadMenu in src/Entity/ToolbarMenuElement.php
Get the full loaded menu entity.

File

src/Entity/ToolbarMenuElement.php, line 60

Class

ToolbarMenuElement
Defines the Toolbar element entity.

Namespace

Drupal\toolbar_menu\Entity

Code

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