src/Common/Service/Language.php
public function getAllEnabledFlat()
    {
        $aOut       = [];
        $aLanguages = $this->getAllEnabled();

        foreach ($aLanguages as $oLanguage) {
            $aOut[$oLanguage->code] = $oLanguage->label;
        }

        return $aOut;
    }
public function getAllEnabledFlat()
    {
        $aOut       = [];
        $aLanguages = $this->getAllEnabled();

        foreach ($aLanguages as $oLanguage) {
            $aOut[$oLanguage->code] = $oLanguage->label;
        }

        return $aOut;
    }
public function getAllEnabledFlat ( ) { $ aOut = [ ] ; $ aLanguages = $ this -> getAllEnabled ( ) ; foreach ( $ aLanguages as $ oLanguage ) { $ aOut [ $ oLanguage -> code ] = $ oLanguage -> label ; } return $ aOut ; }
Returns all the enabled languages as a flat array

@return array
Returns all the enabled languages as a flat array