protected function AuditFilesMergeFileReferencesBatchProcess::dispatch in Audit Files 8.3
Processes the file IDs to delete and merge.
Parameters
array $context: Batch context.
File
- src/
Batch/ AuditFilesMergeFileReferencesBatchProcess.php, line 76
Class
- AuditFilesMergeFileReferencesBatchProcess
- Process batch files.
Namespace
Drupal\auditfiles\BatchCode
protected function dispatch(array &$context) {
$this->mergeFileReferences
->auditfilesMergeFileReferencesBatchMergeProcessFile($this->fileId, $this->fileIds);
$context['results'][] = Html::escape($this->fileId);
$context['results'][] = Html::escape($this->filesIds);
$context['message'] = new TranslatableMarkup('Merged file ID %file_being_merged into file ID %file_being_kept.', [
'%file_being_kept' => $this->fileId,
'%file_being_merged' => $this->fileIds,
]);
}