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