LanguageConfigFactoryOverrideInterface
interface LanguageConfigFactoryOverrideInterface implements ConfigFactoryOverrideInterface (View source)
Defines the interface for a configuration factory language override object.
Methods
The string to append to the configuration static cache name.
Creates a configuration object for use during install and synchronization.
Gets the cacheability metadata associated with the config factory override.
Gets the language object used to override configuration data.
Sets the language to be used in configuration overrides.
Get language override for given language and configuration name.
Returns the storage instance for a particular langcode.
Installs available language configuration overrides for a given langcode.
Details
array
loadOverrides(array $names)
Returns config overrides.
string
getCacheSuffix()
The string to append to the configuration static cache name.
StorableConfigBase
createConfigObject(string $name, string $collection = StorageInterface::DEFAULT_COLLECTION)
Creates a configuration object for use during install and synchronization.
If the overrider stores its overrides in configuration collections then it can have its own implementation of \Drupal\Core\Config\StorableConfigBase. Configuration overriders can link themselves to a configuration collection by listening to the \Drupal\Core\Config\ConfigEvents::COLLECTION_INFO event and adding the collections they are responsible for. Doing this will allow installation and synchronization to use the overrider's implementation of StorableConfigBase.
CacheableMetadata
getCacheableMetadata(string $name)
Gets the cacheability metadata associated with the config factory override.
LanguageInterface
getLanguage()
Gets the language object used to override configuration data.
$this
setLanguage(LanguageInterface $language = NULL)
Sets the language to be used in configuration overrides.
Config
getOverride(string $langcode, string $name)
Get language override for given language and configuration name.
StorageInterface
getStorage(string $langcode)
Returns the storage instance for a particular langcode.
installLanguageOverrides(string $langcode)
Installs available language configuration overrides for a given langcode.