You are here

public static function AuditFilesBatchProcess::_auditfiles_not_on_server_batch_delete_process_batch in Audit Files 8

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 110
providing the service that used in not in

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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