protected function AuditFilesReferencedNotUsedBatchProcess::addDispatch in Audit Files 8.3
Same name and namespace in other branches
- 4.x src/Batch/AuditFilesReferencedNotUsedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesReferencedNotUsedBatchProcess::addDispatch()
Processes entity reference additions from content entities to file_managed.
Parameters
array $context: Batch context.
File
- src/
Batch/ AuditFilesReferencedNotUsedBatchProcess.php, line 61
Class
- AuditFilesReferencedNotUsedBatchProcess
- Process batch files.
Namespace
Drupal\auditfiles\BatchCode
protected function addDispatch(array &$context) {
$this->referencedNotUsed
->auditfilesReferencedNotUsedBatchAddProcessFile($this->referenceId);
$context['results'][] = Html::escape($this->referenceId);
$context['message'] = new TranslatableMarkup('Processed file ID %file_id.', [
'%file_id' => $this->referenceId,
]);
}