LocaleDefaultConfigStorage::__construct

public LocaleDefaultConfigStorage::__construct(StorageInterface $config_storage, ConfigurableLanguageManagerInterface $language_manager)

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 60

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 ExtensionInstallStorage($this->configStorage);
  $this->optionalInstallStorage = new ExtensionInstallStorage($this->configStorage, ExtensionInstallStorage::CONFIG_OPTIONAL_DIRECTORY);
}
doc_Drupal
2016-10-29 09:24:02
Comments
Leave a Comment

Please login to continue.