You are here

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

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

The batch process for adding the file.

Parameters

string $filename: File name that to be process.

array $context: Batch context.

File

src/Batch/AuditFilesNotInDatabaseBatchProcess.php, line 49

Class

AuditFilesNotInDatabaseBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

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