You are here

public static function AuditFilesBatchProcess::_auditfiles_referenced_not_used_batch_add_process_batch in Audit Files 8

The batch process for adding 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 223
providing the service that used in not in

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

public static function _auditfiles_referenced_not_used_batch_add_process_batch($reference_id, array &$context) {
  \Drupal::service('auditfiles.referenced_not_used')
    ->_auditfiles_referenced_not_used_batch_add_process_file($reference_id);
  $context['results'][] = $reference_id;
  $context['message'] = t('Processed reference ID %file_id.', [
    '%file_id' => $reference_id,
  ]);
}