/** * Return the menu items * * @return array */ public function getMenuItems() { $this->helper->placeOrphans($this->menuItems['children'], true); $this->helper->sortByPriority($this->menuItems['children']); $this->helper->resetOrphans(); return $this->menuItems; }