protected function getAllMenus()
    {
        if (!empty(self::$menus)) {
            return self::$menus;
        }

        $components = PluginManager::getInstance()->findComponents('Menu', 'Piwik\\Plugin\\Menu');

        self::$menus = array();
        foreach ($components as $component) {
            self::$menus[] = StaticContainer::get($component);
        }

        return self::$menus;
    }
protected function getAllMenus()
    {
        if (!empty(self::$menus)) {
            return self::$menus;
        }

        $components = PluginManager::getInstance()->findComponents('Menu', 'Piwik\\Plugin\\Menu');

        self::$menus = array();
        foreach ($components as $component) {
            self::$menus[] = StaticContainer::get($component);
        }

        return self::$menus;
    }
protected function getAllMenus ( ) { if ( ! empty ( self :: $ menus ) ) { return self :: $ menus ; } $ components = PluginManager :: getInstance ( ) -> findComponents ( 'Menu' , 'Piwik\\Plugin\\Menu' ) ; self :: $ menus = array ( ) ; foreach ( $ components as $ component ) { self :: $ menus [ ] = StaticContainer :: get ( $ component ) ; } return self :: $ menus ; }
Returns a list of available plugin menu instances.

@return \Piwik\Plugin\Menu[]
Returns a list of available plugin menu instances .