You are here

public static function AuditFilesBatchProcess::auditfilesNotInDatabaseBatchDeleteProcessBatch in Audit Files 8.2

The batch process for deleting the file.

Parameters

string $filename: File name that to be process.

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 59

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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