You are here

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

Sets menu items.

Parameters

\Drupal\cheeseburger_menu\CheeseburgerMenuItem[] $menu_items: Menu items.

Return value

static The object itself for chaining

File

src/CheeseburgerMenu.php, line 201

Class

CheeseburgerMenu
Cheeseburger menu class.

Namespace

Drupal\cheeseburger_menu

Code

public function setMenuItems(array $menu_items) {
  $this->menuItems = $menu_items;
  return $this;
}