public function getMenu()
    {
        if (!$this->menu) {

            foreach ($this->getAllMenus() as $menu) {
                $menu->configureTopMenu($this);
            }
        }

        return parent::getMenu();
    }
public function getMenu()
    {
        if (!$this->menu) {

            foreach ($this->getAllMenus() as $menu) {
                $menu->configureTopMenu($this);
            }
        }

        return parent::getMenu();
    }
public function getMenu ( ) { if ( ! $ this -> menu ) { foreach ( $ this -> getAllMenus ( ) as $ menu ) { $ menu -> configureTopMenu ( $ this ) ; } } return parent :: getMenu ( ) ; }
Triggers the Menu.Top.addItems hook and returns the menu.

@return Array
Triggers the Menu . Top . addItems hook and returns the menu .