menu[$menuName])) { $this->menu[$menuName]['_name'] = $menuName; $this->menu[$menuName]['_html'] = $data; $this->menu[$menuName]['_order'] = $order; $this->menu[$menuName]['_url'] = null; $this->menu[$menuName]['_icon'] = ''; $this->menu[$menuName]['_hasSubmenu'] = false; $this->menu[$menuName]['_tooltip'] = $tooltip; } } } /** * Triggers the Menu.Top.addItems hook and returns the menu. * * @return Array */ public function getMenu() { if (!$this->menu) { foreach ($this->getAllMenus() as $menu) { $menu->configureTopMenu($this); } } return parent::getMenu(); } }