protected function BatchImportProcessor::getBatchOperations in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Processors/BatchImportProcessor.php \Drupal\content_synchronizer\Processors\BatchImportProcessor::getBatchOperations()
- 3.x 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 56
Class
- BatchImportProcessor
- Batch Import.
Namespace
Drupal\content_synchronizer\ProcessorsCode
protected function getBatchOperations(ImportEntity $import, array $entitiesToImport, $finishCallBack = NULL, $creationType = ImportProcessor::PUBLICATION_UNPUBLISH, $updateType = ImportProcessor::UPDATE_IF_RECENT) {
$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;
}