protected function BatchImportProcessor::getBatchOperations in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Processors/BatchImportProcessor.php \Drupal\content_synchronizer\Processors\BatchImportProcessor::getBatchOperations()
- 8 src/Processors/BatchImportProcessor.php \Drupal\content_synchronizer\Processors\BatchImportProcessor::getBatchOperations()
1 call to BatchImportProcessor::getBatchOperations()
- BatchImportProcessor::import in src/
Processors/ BatchImportProcessor.php - Launch the import of the import entity.
File
- src/
Processors/ BatchImportProcessor.php, line 59
Class
- BatchImportProcessor
- Batch Import.
Namespace
Drupal\content_synchronizer\ProcessorsCode
protected function getBatchOperations(ImportEntity $import, array $entitiesToImport, $finishCallBack = NULL, $creationType = ImportProcessor::DEFAULT_PUBLICATION_TYPE, $updateType = ImportProcessor::DEFAULT_UPDATE_TYPE) {
$operations = [];
foreach ($entitiesToImport as $data) {
$data['finishCallback'] = $finishCallBack;
$data['importId'] = $import
->id();
$data['creationType'] = $creationType;
$data['updateType'] = $updateType;
$operations[] = [
get_called_class() . '::processBatchOperation',
[
$data,
],
];
}
return $operations;
}