You are here

public function KeyConfigOverrides::__construct in Key 8

Creates a new ModuleConfigOverrides instance.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface|null $config_factory: The config factory.

\Drupal\Core\Cache\CacheBackendInterface|null $cache_backend: The cache backend.

File

src/KeyConfigOverrides.php, line 53

Class

KeyConfigOverrides
Provides key overrides for configuration.

Namespace

Drupal\key

Code

public function __construct(ConfigFactoryInterface $config_factory = NULL, CacheBackendInterface $cache_backend = NULL) {
  $this->configFactory = $config_factory ?: \Drupal::configFactory();
  $this->cacheBackend = $cache_backend ?: \Drupal::cache('data');
}