You are here

public static function AuditFilesReferencedNotUsedBatchProcess::auditfilesReferencedNotUsedBatchDeleteProcessBatch in Audit Files 4.x

Same name and namespace in other branches
  1. 8.3 src/Batch/AuditFilesReferencedNotUsedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesReferencedNotUsedBatchProcess::auditfilesReferencedNotUsedBatchDeleteProcessBatch()

Batch Process for Deleting a file reference.

Parameters

int $reference_id: File entity reference ID to delete.

array $context: Batch context.

File

src/Batch/AuditFilesReferencedNotUsedBatchProcess.php, line 75

Class

AuditFilesReferencedNotUsedBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

public static function auditfilesReferencedNotUsedBatchDeleteProcessBatch($reference_id, array &$context) {
  $referencedNotUsed = \Drupal::service('auditfiles.referenced_not_used');
  $worker = new static($referencedNotUsed, $reference_id);
  $worker
    ->deleteDispatch($context);
}