source/Setup/Controller/ModuleStateMapGenerator.php
private function applyModuleGroupNameTranslateFunction($moduleStateMap)
    {
        $moduleGroupNameTranslateFilterFunction = $this->moduleGroupNameTranslateFunction;

        if (!$moduleGroupNameTranslateFilterFunction) {
            return $moduleStateMap;
        }

        $translatedModuleStateMap = [];

        foreach ($this->iterateThroughModuleStateMapByGroup($moduleStateMap) as list($groupId, $modules)) {
            $groupName = $moduleGroupNameTranslateFilterFunction($groupId);
            $translatedModuleStateMap[$groupName] = $modules;
        }

        return $translatedModuleStateMap;
    }
private function applyModuleGroupNameTranslateFunction($moduleStateMap)
    {
        $moduleGroupNameTranslateFilterFunction = $this->moduleGroupNameTranslateFunction;

        if (!$moduleGroupNameTranslateFilterFunction) {
            return $moduleStateMap;
        }

        $translatedModuleStateMap = [];

        foreach ($this->iterateThroughModuleStateMapByGroup($moduleStateMap) as list($groupId, $modules)) {
            $groupName = $moduleGroupNameTranslateFilterFunction($groupId);
            $translatedModuleStateMap[$groupName] = $modules;
        }

        return $translatedModuleStateMap;
    }
private function applyModuleGroupNameTranslateFunction ( $ moduleStateMap ) { $ moduleGroupNameTranslateFilterFunction = $ this -> moduleGroupNameTranslateFunction ; if ( ! $ moduleGroupNameTranslateFilterFunction ) { return $ moduleStateMap ; } $ translatedModuleStateMap = [ ] ; foreach ( $ this -> iterateThroughModuleStateMapByGroup ( $ moduleStateMap ) as list ( $ groupId , $ modules ) ) { $ groupName = $ moduleGroupNameTranslateFilterFunction ( $ groupId ) ; $ translatedModuleStateMap [ $ groupName ] = $ modules ; } return $ translatedModuleStateMap ; }
Apply function which translates module group id into module group 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 group id into module group name .