source/Setup/Controller.php
private function getModuleStateMapGenerator($systemRequirementsInfo)
    {
        $setup = $this->getSetupInstance();
        $language = $this->getLanguageInstance();

        $moduleStateMapGenerator = new Controller\ModuleStateMapGenerator($systemRequirementsInfo);

        $moduleStateMapGenerator->setModuleStateHtmlClassConvertFunction(function ($moduleState) use ($setup) {
            return $setup->getModuleClass($moduleState);
        });
        $moduleStateMapGenerator->setModuleNameTranslateFunction(function ($moduleId) use ($language) {
            return $language->getModuleName($moduleId);
        });
        $moduleStateMapGenerator->setModuleGroupNameTranslateFunction(function ($moduleGroupId) use ($language) {
            return $language->getModuleName($moduleGroupId);
        });

        return $moduleStateMapGenerator;
    }
private function getModuleStateMapGenerator($systemRequirementsInfo)
    {
        $setup = $this->getSetupInstance();
        $language = $this->getLanguageInstance();

        $moduleStateMapGenerator = new Controller\ModuleStateMapGenerator($systemRequirementsInfo);

        $moduleStateMapGenerator->setModuleStateHtmlClassConvertFunction(function ($moduleState) use ($setup) {
            return $setup->getModuleClass($moduleState);
        });
        $moduleStateMapGenerator->setModuleNameTranslateFunction(function ($moduleId) use ($language) {
            return $language->getModuleName($moduleId);
        });
        $moduleStateMapGenerator->setModuleGroupNameTranslateFunction(function ($moduleGroupId) use ($language) {
            return $language->getModuleName($moduleGroupId);
        });

        return $moduleStateMapGenerator;
    }
private function getModuleStateMapGenerator ( $ systemRequirementsInfo ) { $ setup = $ this -> getSetupInstance ( ) ; $ language = $ this -> getLanguageInstance ( ) ; $ moduleStateMapGenerator = new Controller \ ModuleStateMapGenerator ( $ systemRequirementsInfo ) ; $ moduleStateMapGenerator -> setModuleStateHtmlClassConvertFunction ( function ( $ moduleState ) use ( $ setup ) { return $ setup -> getModuleClass ( $ moduleState ) ; } ) ; $ moduleStateMapGenerator -> setModuleNameTranslateFunction ( function ( $ moduleId ) use ( $ language ) { return $ language -> getModuleName ( $ moduleId ) ; } ) ; $ moduleStateMapGenerator -> setModuleGroupNameTranslateFunction ( function ( $ moduleGroupId ) use ( $ language ) { return $ language -> getModuleName ( $ moduleGroupId ) ; } ) ; return $ moduleStateMapGenerator ; }
Getter for ModuleStateMapGenerator.

Returns an instance of ModuleStateMapGenerator which has all necessary functions predefined:

- StateHtmlClassConverterFunction to convert module state to HTML class attribute for setup page;
- ModuleNameTranslateFunction to translate requirement module id to it's full name;
- ModuleGroupNameTranslateFunction to translate requirement module group id to it's full name.

@param array $systemRequirementsInfo

@return ModuleStateMapGenerator
Getter for ModuleStateMapGenerator .