You are here

public static function AuditFilesNotOnServerBatchProcess::auditfilesNotOnServerBatchDeleteProcessBatch in Audit Files 8.3

Same name and namespace in other branches
  1. 4.x src/Batch/AuditFilesNotOnServerBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesNotOnServerBatchProcess::auditfilesNotOnServerBatchDeleteProcessBatch()

The batch process for deleting the file.

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

Parameters

int $file_id: File entity ID to delete.

array $context: Batch context.

File

src/Batch/AuditFilesNotOnServerBatchProcess.php, line 52

Class

AuditFilesNotOnServerBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

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