source/Setup/Controller/ModuleStateMapGenerator.php
private function applyModuleNameTranslateFunction($moduleStateMap)
    {
        return $this->applyModuleStateMapFilterFunction(
            $moduleStateMap,
            $this->moduleNameTranslateFunction,
            function ($moduleData, $translateFunction) {
                $moduleId = $moduleData[self::MODULE_ID_KEY];
                $moduleData[self::MODULE_NAME_KEY] = $translateFunction($moduleId);

                return $moduleData;
            }
        );
    }
private function applyModuleNameTranslateFunction($moduleStateMap)
    {
        return $this->applyModuleStateMapFilterFunction(
            $moduleStateMap,
            $this->moduleNameTranslateFunction,
            function ($moduleData, $translateFunction) {
                $moduleId = $moduleData[self::MODULE_ID_KEY];
                $moduleData[self::MODULE_NAME_KEY] = $translateFunction($moduleId);

                return $moduleData;
            }
        );
    }
private function applyModuleNameTranslateFunction ( $ moduleStateMap ) { return $ this -> applyModuleStateMapFilterFunction ( $ moduleStateMap , $ this -> moduleNameTranslateFunction , function ( $ moduleData , $ translateFunction ) { $ moduleId = $ moduleData [ self :: MODULE_ID_KEY ] ; $ moduleData [ self :: MODULE_NAME_KEY ] = $ translateFunction ( $ moduleId ) ; return $ moduleData ; } ) ; }
Apply function which translates module id into module name.

@param array $moduleStateMap An array of format described in `getModuleStateMap`.

@return array An array of format described in `getModuleStateMap`.
Apply function which translates module id into module name .