public function ConfigurableLanguageManager::getStandardLanguageListWithoutConfigured in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getStandardLanguageListWithoutConfigured()
- 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getStandardLanguageListWithoutConfigured()
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 463
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function getStandardLanguageListWithoutConfigured() {
$languages = $this
->getLanguages();
$predefined = $this
->getStandardLanguageList();
foreach ($predefined as $key => $value) {
if (isset($languages[$key])) {
unset($predefined[$key]);
continue;
}
$predefined[$key] = new TranslatableMarkup($value[0]);
}
natcasesort($predefined);
return $predefined;
}