You are here

public function LocaleDefaultConfigStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/LocaleDefaultConfigStorage.php \Drupal\locale\LocaleDefaultConfigStorage::__construct()

Constructs a LocaleDefaultConfigStorage.

Parameters

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

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

File

core/modules/locale/src/LocaleDefaultConfigStorage.php, line 65
Contains \Drupal\locale\LocaleDefaultConfigStorage.

Class

LocaleDefaultConfigStorage
Provides access to default configuration for locale integration.

Namespace

Drupal\locale

Code

public function __construct(StorageInterface $config_storage, ConfigurableLanguageManagerInterface $language_manager) {
  $this->configStorage = $config_storage;
  $this->languageManager = $language_manager;
  $this->requiredInstallStorage = new InstallStorage();
  $this->optionalInstallStorage = new InstallStorage(InstallStorage::CONFIG_OPTIONAL_DIRECTORY);
}