function LocaleConfigManager::__construct

Same name in other branches
  1. 9 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::__construct()
  2. 8.9.x core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::__construct()
  3. 11.x core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::__construct()

Creates a new typed configuration manager.

Parameters

\Drupal\Core\Config\StorageInterface $config_storage: The storage object to use for reading configuration data.

\Drupal\locale\StringStorageInterface $locale_storage: The locale storage to use for reading string translations.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration manager.

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager.

\Drupal\locale\LocaleDefaultConfigStorage $default_config_storage: The locale default configuration storage.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.

File

core/modules/locale/src/LocaleConfigManager.php, line 119

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

public function __construct(StorageInterface $config_storage, StringStorageInterface $locale_storage, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config, ConfigurableLanguageManagerInterface $language_manager, LocaleDefaultConfigStorage $default_config_storage, ConfigManagerInterface $config_manager) {
    $this->configStorage = $config_storage;
    $this->localeStorage = $locale_storage;
    $this->configFactory = $config_factory;
    $this->typedConfigManager = $typed_config;
    $this->languageManager = $language_manager;
    $this->defaultConfigStorage = $default_config_storage;
    $this->configManager = $config_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.