Provides access to default configuration for locale integration.
Allows unified access to default configuration from one of three sources:
- Required default configuration (config/install/*)
- Optional default configuration (config/optional/*)
- Predefined languages mocked as default configuration (list defined in LocaleConfigManagerInterface::getStandardLanguageList())
These sources are considered equal in terms of how locale module interacts with them for translation. Their translatable source strings are exposed for interface translation and participate in remote translation updates.
Hierarchy
- class \Drupal\locale\LocaleDefaultConfigStorage
File
- core/modules/locale/src/LocaleDefaultConfigStorage.php, line 22
Namespace
Drupal\locale
Members
Name | Modifiers | Type | Description |
---|---|---|---|
LocaleDefaultConfigStorage::$configStorage | protected | property | The storage instance for reading configuration data. |
LocaleDefaultConfigStorage::$languageManager | protected | property | The language manager. |
LocaleDefaultConfigStorage::$optionalInstallStorage | protected | property | The storage instance for reading optional default configuration data. |
LocaleDefaultConfigStorage::$requiredInstallStorage | protected | property | The storage instance for reading required default configuration data. |
LocaleDefaultConfigStorage::getComponentNames | public | function | Get all configuration names and folders for a list of modules or themes. |
LocaleDefaultConfigStorage::listAll | public | function | Return the list of configuration in install storage and current languages. |
LocaleDefaultConfigStorage::predefinedConfiguredLanguages | protected | function | Compute the list of configuration names that match predefined languages. |
LocaleDefaultConfigStorage::read | public | function | Read a configuration from install storage or default languages. |
LocaleDefaultConfigStorage::__construct | public | function | Constructs a LocaleDefaultConfigStorage. |
Please login to continue.