protected function AuditFilesReferencedNotUsedBatchProcess::addDispatch in Audit Files 4.x
Same name and namespace in other branches
- 8.3 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->reference_id);
$context['results'][] = Html::escape($this->reference_id);
$context['message'] = new TranslatableMarkup('Processed file ID %file_id.', [
'%file_id' => $this->reference_id,
]);
}