public static function AuditFilesUsedNotManagedBatchProcess::auditfilesUsedNotManagedBatchDeleteProcessBatch in Audit Files 4.x
Same name and namespace in other branches
- 8.3 src/Batch/AuditFilesUsedNotManagedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesUsedNotManagedBatchProcess::auditfilesUsedNotManagedBatchDeleteProcessBatch()
The batch process for deleting the file feature 'used not managed'.
Parameters
int $file_id: File entity ID to delete.
array $context: Batch context.
File
- src/
Batch/ AuditFilesUsedNotManagedBatchProcess.php, line 49
Class
- AuditFilesUsedNotManagedBatchProcess
- Batch Worker to remove files from file_usage not in file_managed table.
Namespace
Drupal\auditfiles\BatchCode
public static function auditfilesUsedNotManagedBatchDeleteProcessBatch($file_id, array &$context) {
$usedNotManaged = \Drupal::service('auditfiles.used_not_managed');
$worker = new static($usedNotManaged, $file_id);
$worker
->dispatch($context);
}