You are here

public function StatusOverride::__construct in Configuration Split 2.0.x

The service constructor.

Parameters

\Drupal\Core\State\StateInterface $state: The drupal state.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cacheInvalidator: The cache invalidator.

File

src/Config/StatusOverride.php, line 39

Class

StatusOverride
A config override for config split based on the drupal state.

Namespace

Drupal\config_split\Config

Code

public function __construct(StateInterface $state, CacheTagsInvalidatorInterface $cacheInvalidator) {
  $this->state = $state;
  $this->cacheInvalidator = $cacheInvalidator;
}