public function ConfigSplitManager::singleImport 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 590
Class
- ConfigSplitManager
- The manager to split and merge.
Namespace
Drupal\config_splitCode
public function singleImport(ImmutableConfig $split, bool $activate) : StorageInterface {
$storage = $this
->getSplitStorage($split, $this->sync);
return $this
->singleImportOrActivate($split, $storage, $activate);
}