You are here

public static function AuditFilesBatchProcess::_auditfiles_managed_not_used_batch_delete_process_batch in Audit Files 8

The batch process for deleting the file of Managed not used functionality.

Used by the Batch API to keep track of and pass data from one operation to the next.

File

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

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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