function LocaleDefaultConfigStorage::listAll
Same name in other branches
- 9 core/modules/locale/src/LocaleDefaultConfigStorage.php \Drupal\locale\LocaleDefaultConfigStorage::listAll()
- 10 core/modules/locale/src/LocaleDefaultConfigStorage.php \Drupal\locale\LocaleDefaultConfigStorage::listAll()
- 11.x core/modules/locale/src/LocaleDefaultConfigStorage.php \Drupal\locale\LocaleDefaultConfigStorage::listAll()
Return the list of configuration in install storage and current languages.
Return value
array List of configuration in install storage and current languages.
File
-
core/
modules/ locale/ src/ LocaleDefaultConfigStorage.php, line 103
Class
- LocaleDefaultConfigStorage
- Provides access to default configuration for locale integration.
Namespace
Drupal\localeCode
public function listAll() {
$languages = $this->predefinedConfiguredLanguages();
return array_unique(array_merge($this->requiredInstallStorage
->listAll(), $this->optionalInstallStorage
->listAll(), $languages));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.