public function BatchExportProcessor::exportEntities in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Processors/BatchExportProcessor.php \Drupal\content_synchronizer\Processors\BatchExportProcessor::exportEntities()
- 3.x src/Processors/BatchExportProcessor.php \Drupal\content_synchronizer\Processors\BatchExportProcessor::exportEntities()
Export entities.
Parameters
array $entities: Entities to export.
mixed $finishCallback: Callback method.
File
- src/
Processors/ BatchExportProcessor.php, line 41
Class
- BatchExportProcessor
- BatchExport processor.
Namespace
Drupal\content_synchronizer\ProcessorsCode
public function exportEntities(array $entities, $finishCallback = NULL) {
$operations = $this
->getBatchOperations($entities, $finishCallback);
$batch = [
'title' => t('Exporting entities...'),
'operations' => $operations,
'finished' => get_called_class() . '::onFinishBatchProcess',
];
batch_set($batch);
}