source/Setup/Controller/ModuleStateMapGenerator.php
private function applyModuleStateHtmlClassConvertFunction($moduleStateMap)
    {
        return $this->applyModuleStateMapFilterFunction(
            $moduleStateMap,
            $this->moduleStateHtmlClassConvertFunction,
            function ($moduleData, $convertFunction) {
                $moduleState = $moduleData[self::MODULE_STATE_KEY];
                $moduleData[self::MODULE_STATE_HTML_CLASS_KEY] = $convertFunction($moduleState);

                return $moduleData;
            }
        );
    }
private function applyModuleStateHtmlClassConvertFunction($moduleStateMap)
    {
        return $this->applyModuleStateMapFilterFunction(
            $moduleStateMap,
            $this->moduleStateHtmlClassConvertFunction,
            function ($moduleData, $convertFunction) {
                $moduleState = $moduleData[self::MODULE_STATE_KEY];
                $moduleData[self::MODULE_STATE_HTML_CLASS_KEY] = $convertFunction($moduleState);

                return $moduleData;
            }
        );
    }
private function applyModuleStateHtmlClassConvertFunction ( $ moduleStateMap ) { return $ this -> applyModuleStateMapFilterFunction ( $ moduleStateMap , $ this -> moduleStateHtmlClassConvertFunction , function ( $ moduleData , $ convertFunction ) { $ moduleState = $ moduleData [ self :: MODULE_STATE_KEY ] ; $ moduleData [ self :: MODULE_STATE_HTML_CLASS_KEY ] = $ convertFunction ( $ moduleState ) ; return $ moduleData ; } ) ; }
Apply function which converts module state into HTML class of given state.

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

@return array An array of format described in `getModuleStateMap`.
Apply function which converts module state into HTML class of given state .