You are here

public static function AuditFilesBatchProcess::auditfilesUsedNotReferencedBatchDeleteProcessBatch in Audit Files 8.2

The batch process for deleting the file.

File

src/AuditFilesBatchProcess.php, line 177

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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