public static function AuditFilesReferencedNotUsedBatchProcess::auditfilesReferencedNotUsedBatchAddProcessBatch in Audit Files 4.x
Same name and namespace in other branches
- 8.3 src/Batch/AuditFilesReferencedNotUsedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesReferencedNotUsedBatchProcess::auditfilesReferencedNotUsedBatchAddProcessBatch()
Batch Process for Adding a file reference.
Parameters
int $reference_id: File entity reference ID to add.
array $context: Batch context.
File
- src/
Batch/ AuditFilesReferencedNotUsedBatchProcess.php, line 49
Class
- AuditFilesReferencedNotUsedBatchProcess
- Process batch files.
Namespace
Drupal\auditfiles\BatchCode
public static function auditfilesReferencedNotUsedBatchAddProcessBatch($reference_id, array &$context) {
$referencedNotUsed = \Drupal::service('auditfiles.referenced_not_used');
$worker = new static($referencedNotUsed, $reference_id);
$worker
->addDispatch($context);
}