public static function BatchImportProcessor::processBatchOperation in Content Synchronizer 8.2
Same name and namespace in other branches
- 8 src/Processors/BatchImportProcessor.php \Drupal\content_synchronizer\Processors\BatchImportProcessor::processBatchOperation()
- 3.x src/Processors/BatchImportProcessor.php \Drupal\content_synchronizer\Processors\BatchImportProcessor::processBatchOperation()
Do a batch operation.
Parameters
array $data: The data to treat.
array $context: The context.
Overrides BatchProcessorBase::processBatchOperation
File
- src/
Processors/ BatchImportProcessor.php, line 81
Class
- BatchImportProcessor
- Batch Import.
Namespace
Drupal\content_synchronizer\ProcessorsCode
public static function processBatchOperation(array $data, array $context) {
$importProcessor = new ImportProcessor(ImportEntity::load($data['importId']));
$importProcessor
->setCreationType($data['creationType']);
$importProcessor
->setUpdateType($data['updateType']);
$importProcessor
->importEntityFromRootData($data);
$context['results']['finishCallback'] = $data['finishCallback'];
}