You are here

public static function AuditFilesBatchProcess::auditfilesManagedNotUsedBatchDeleteProcessBatch in Audit Files 8.2

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 124

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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