You are here

public static function AuditFilesBatchProcess::auditfiles_not_in_database_batch_add_process_batch in Audit Files 8

The batch process for adding the file.

Parameters

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

File

src/AuditFilesBatchProcess.php, line 44
providing the service that used in not in

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

public static function auditfiles_not_in_database_batch_add_process_batch($filename, array &$context) {
  \Drupal::service('auditfiles.not_in_database')
    ->auditfiles_not_in_database_batch_add_process_file($filename);
  $context['results'][] = $filename;
  $context['message'] = t('Processed %filename.', [
    '%filename' => $filename,
  ]);
}