Piwik\Menu\MenuTop::getMenu PHP Method

getMenu() public method

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