protected function ConfigImporterTrait::getConfigImporterFromStorage in Configuration Split 2.0.x
Get a config importer from a storage to sync import.
Parameters
\Drupal\Core\Config\StorageInterface $toImport: The config storage to import from.
Return value
\Drupal\Core\Config\ConfigImporter The config importer.
File
- src/
Config/ ConfigImporterTrait.php, line 56
Class
- ConfigImporterTrait
- The ConfigImporterTrait helps us to create a ConfigImporter.
Namespace
Drupal\config_split\ConfigCode
protected function getConfigImporterFromStorage(StorageInterface $toImport) : ConfigImporter {
$active = \Drupal::getContainer()
->get('config.storage');
return $this
->getConfigImporterFromComparer(new StorageComparer($toImport, $active));
}