You are here

public static function AuditFilesBatchProcess::auditfilesNotOnServerBatchDeleteProcessBatch in Audit Files 8.2

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.

File

src/AuditFilesBatchProcess.php, line 112

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

public static function auditfilesNotOnServerBatchDeleteProcessBatch($file_id, array &$context) {
  \Drupal::service('auditfiles.not_on_server')
    ->auditfilesNotOnServerBatchDeleteProcessFile($file_id);
  $context['results'][] = $file_id;
  $context['message'] = t('Processed file ID %file_id.', [
    '%file_id' => $file_id,
  ]);
}