W3cubDocs

/Drupal 8

public function TypedConfigManager::__construct

public TypedConfigManager::__construct(StorageInterface $configStorage, StorageInterface $schemaStorage, CacheBackendInterface $cache, ModuleHandlerInterface $module_handler)

Creates a new typed configuration manager.

Parameters

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

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

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend to use for caching the definitions.

Overrides TypedDataManager::__construct

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 48

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function __construct(StorageInterface $configStorage, StorageInterface $schemaStorage, CacheBackendInterface $cache, ModuleHandlerInterface $module_handler) {
  $this->configStorage = $configStorage;
  $this->schemaStorage = $schemaStorage;
  $this->setCacheBackend($cache, 'typed_config_definitions');
  $this->alterInfo('config_schema_info');
  $this->moduleHandler = $module_handler;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!TypedConfigManager.php/function/TypedConfigManager::__construct/8.1.x