public function LocaleConfigManager::__construct

Creates a new typed configuration manager.

Parameters

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

\Drupal\Core\Config\StorageInterface $schemaStorage: The storage controller object to use for reading schema data.

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

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

Overrides TypedConfigManager::__construct

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php, line 51
Contains \Drupal\locale\LocaleConfigManager.

Class

LocaleConfigManager
Manages localized configuration type plugins.

Namespace

Drupal\locale

Code

public function __construct(StorageInterface $configStorage, StorageInterface $schemaStorage, StorageInterface $installStorage, StringStorageInterface $localeStorage) {

  // Note we use the install storage for the parent constructor.
  parent::__construct($configStorage, $schemaStorage);
  $this->installStorage = $installStorage;
  $this->localeStorage = $localeStorage;
}