protected function AuditFilesNotInDatabaseBatchProcess::addDispatch in Audit Files 8.3
Same name and namespace in other branches
- 4.x src/Batch/AuditFilesNotInDatabaseBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesNotInDatabaseBatchProcess::addDispatch()
Adds filenames referenced in content in file_managed but not in file_usage.
Parameters
array $context: Batch context.
File
- src/
Batch/ AuditFilesNotInDatabaseBatchProcess.php, line 61
Class
- AuditFilesNotInDatabaseBatchProcess
- Process batch files.
Namespace
Drupal\auditfiles\BatchCode
protected function addDispatch(array &$context) {
$this->notInDatabase
->auditfilesNotInDatabaseBatchAddProcessFile($this->fileName);
$context['results'][] = Html::escape($this->fileName);
$context['message'] = new TranslatableMarkup('Processed %filename.', [
'%filename' => $this->fileName,
]);
}