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