You are here

public static function AuditFilesBatchProcess::auditfilesUsedNotManagedBatchDeleteProcessBatch in Audit Files 8.2

The batch process for deleting the file feature 'used not managed'.

File

src/AuditFilesBatchProcess.php, line 150

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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