You are here

public static function AuditFilesUsedNotReferencedBatchProcess::auditfilesUsedNotReferencedBatchDeleteProcessBatch in Audit Files 8.3

The batch process for process the file ID(s).

Parameters

int $file_id: File entity ID to delete.

array $context: Batch context.

File

src/Batch/AuditFilesUsedNotReferencedBatchProcess.php, line 49

Class

AuditFilesUsedNotReferencedBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

public static function auditfilesUsedNotReferencedBatchDeleteProcessBatch($file_id, array &$context) {
  $usedNotReferenced = \Drupal::service('auditfiles.used_not_referenced');
  $worker = new static($usedNotReferenced, $file_id);
  $worker
    ->dispatch($context);
}