public function getLanguages($flags = LanguageInterface::STATE_CONFIGURABLE
) { $static_cache_id =
$this->
getCurrentLanguage()->
getId();
if (!
isset($this->languages
[$static_cache_id][$flags])) { // If this language manager is used, there are no configured languages.
// The default language and locked languages comprise the full language
// list.
$default =
$this->
getDefaultLanguage();
$languages =
[$default->
getId() =>
$default];
$languages +=
$this->
getDefaultLockedLanguages($default->
getWeight());
// Filter the full list of languages based on the value of $flags.
$this->languages
[$static_cache_id][$flags] =
$this->
filterLanguages($languages,
$flags);
} return $this->languages
[$static_cache_id][$flags];
} /**
* {@inheritdoc}
*/
public function getNativeLanguages() { // In a language unaware site we don't have translated languages.
return $this->
getLanguages();
}