protected function getLanguage()
    {
        $output = [];
        // Get the language that be for default.
        $default_id = $this->languageManager->getDefaultLanguage()->getId();
        foreach ($this->languageManager->getLanguages() as $key => $value) {
            if ($default_id == $key) {
                $output[] = '';
            } else {
                $output[] = 'language.' . $value->getId();
            }
        }
        return $output;
    }
protected function getLanguage()
    {
        $output = [];
        // Get the language that be for default.
        $default_id = $this->languageManager->getDefaultLanguage()->getId();
        foreach ($this->languageManager->getLanguages() as $key => $value) {
            if ($default_id == $key) {
                $output[] = '';
            } else {
                $output[] = 'language.' . $value->getId();
            }
        }
        return $output;
    }
protected function getLanguage ( ) { $ output = [ ] ; // Get the language that be for default. $ default_id = $ this -> languageManager -> getDefaultLanguage ( ) -> getId ( ) ; foreach ( $ this -> languageManager -> getLanguages ( ) as $ key => $ value ) { if ( $ default_id == $ key ) { $ output [ ] = '' ; } else { $ output [ ] = 'language.' . $ value -> getId ( ) ; } } return $ output ; }
Get the languague enable.
Get the languague enable .