You are here

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

Append menu item to navigation.

Parameters

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

Return value

static The object itself for chaining.

File

src/CheeseburgerMenu.php, line 232

Class

CheeseburgerMenu
Cheeseburger menu class.

Namespace

Drupal\cheeseburger_menu

Code

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