You are here

public function CheeseburgerMenu::addMenuItem in Cheeseburger Menu 5.0.x

Append menu item to menu.

Parameters

\Drupal\cheeseburger_menu\CheeseburgerMenuItem $menu_item: Menu item.

Return value

static The object itself for chaining

File

src/CheeseburgerMenu.php, line 187

Class

CheeseburgerMenu
Cheeseburger menu class.

Namespace

Drupal\cheeseburger_menu

Code

public function addMenuItem(CheeseburgerMenuItem $menu_item) {
  $this->menuItems[] = $menu_item;
  return $this;
}