You are here

public static function AuditFilesNotInDatabaseBatchProcess::auditfilesNotInDatabaseBatchDeleteProcessBatch in Audit Files 4.x

Same name and namespace in other branches
  1. 8.3 src/Batch/AuditFilesNotInDatabaseBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesNotInDatabaseBatchProcess::auditfilesNotInDatabaseBatchDeleteProcessBatch()

The batch process for deleting the file.

Parameters

string $filename: File name that needs to be processed.

array $context: Batch context.

File

src/Batch/AuditFilesNotInDatabaseBatchProcess.php, line 75

Class

AuditFilesNotInDatabaseBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

public static function auditfilesNotInDatabaseBatchDeleteProcessBatch($filename, array &$context) {
  $notInDatabase = \Drupal::service('auditfiles.not_in_database');
  $worker = new static($notInDatabase, $filename);
  $worker
    ->deleteDispatch($context);
}