public function ConfigSplitManager::exportTransform in Configuration Split 2.0.x
Process the export of a split.
Parameters
string $name: The name of the split.
\Drupal\Core\Config\StorageTransformEvent $event: The transformation event.
File
- src/
ConfigSplitManager.php, line 172
Class
- ConfigSplitManager
- The manager to split and merge.
Namespace
Drupal\config_splitCode
public function exportTransform(string $name, StorageTransformEvent $event) : void {
$split = $this
->getSplitConfig($name);
if ($split === NULL) {
return;
}
if (!$split
->get('status')) {
return;
}
$storage = $event
->getStorage();
$preview = $this
->getPreviewStorage($split, $storage);
if ($preview !== NULL) {
// Without a storage there is no splitting.
$this
->splitPreview($split, $storage, $preview);
}
}