You are here

public static function AuditFilesMergeFileReferencesBatchProcess::auditfilesMergeFileReferencesBatchMergeProcessBatch in Audit Files 8.3

The batch process for deleting the file.

Parameters

int $file_being_kept: The file ID of the file to merge the other into.

array $files_being_merged: The file ID of the files to merge.

array $context: Used by the Batch API to keep track of and pass data from one operation to the next.

File

src/Batch/AuditFilesMergeFileReferencesBatchProcess.php, line 64

Class

AuditFilesMergeFileReferencesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

public static function auditfilesMergeFileReferencesBatchMergeProcessBatch($file_being_kept, array $files_being_merged, array &$context) {
  $mergeFileReferences = \Drupal::service('auditfiles.merge_file_references');
  $worker = new static($mergeFileReferences, $file_being_kept, $files_being_merged);
  $worker
    ->dispatch($context);
}