src/Service/MelisCoreModulesService.php
public function getActiveModules($exclude = [])
    {
        $mm = $this->getServiceLocator()->get('ModuleManager');
        $loadedModules = array_keys($mm->getLoadedModules());
        $pluginModules = $this->getModulePlugins();
        $modules = [];
        foreach ($loadedModules as $module) {
            if (in_array($module, $pluginModules)) {
                if (!in_array($module, $exclude)) {
                    $modules[] = $module;
                }
            }
        }

        return $modules;
    }
public function getActiveModules($exclude = [])
    {
        $mm = $this->getServiceLocator()->get('ModuleManager');
        $loadedModules = array_keys($mm->getLoadedModules());
        $pluginModules = $this->getModulePlugins();
        $modules = [];
        foreach ($loadedModules as $module) {
            if (in_array($module, $pluginModules)) {
                if (!in_array($module, $exclude)) {
                    $modules[] = $module;
                }
            }
        }

        return $modules;
    }
public function getActiveModules ( $ exclude = [ ] ) { $ mm = $ this -> getServiceLocator ( ) -> get ( 'ModuleManager' ) ; $ loadedModules = array_keys ( $ mm -> getLoadedModules ( ) ) ; $ pluginModules = $ this -> getModulePlugins ( ) ; $ modules = [ ] ; foreach ( $ loadedModules as $ module ) { if ( in_array ( $ module , $ pluginModules ) ) { if ( ! in_array ( $ module , $ exclude ) ) { $ modules [ ] = $ module ; } } } return $ modules ; }
Returns all the modules that has been loaded in zend

@param array $exclude

@return array
Returns all the modules that has been loaded in zend