You are here

public function ConfigurableLanguageManager::getLanguageConfigOverrideStorage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::getLanguageConfigOverrideStorage()

Gets a language configuration override storage object.

Parameters

string $langcode: The language code for the override.

Return value

\Drupal\Core\Config\StorageInterface A storage object to use for reading and writing the configuration override.

Overrides ConfigurableLanguageManagerInterface::getLanguageConfigOverrideStorage

File

core/modules/language/src/ConfigurableLanguageManager.php, line 458

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function getLanguageConfigOverrideStorage($langcode) {
  return $this->configFactoryOverride
    ->getStorage($langcode);
}