You are here

public function ConfigSplitManager::singleActivate in Configuration Split 2.0.x

Import the config of a single split.

Parameters

\Drupal\Core\Config\ImmutableConfig $split: The split config.

bool $activate: Whether to activate the split as well.

Return value

\Drupal\Core\Config\StorageInterface The storage to pass to a ConfigImporter to do the actual importing.

File

src/ConfigSplitManager.php, line 606

Class

ConfigSplitManager
The manager to split and merge.

Namespace

Drupal\config_split

Code

public function singleActivate(ImmutableConfig $split, bool $activate) : StorageInterface {
  $storage = $this
    ->getSplitStorage($split, $this->active);
  return $this
    ->singleImportOrActivate($split, $storage, $activate);
}