public function AuditFilesUsedNotManagedBatchProcess::__construct in Audit Files 4.x
Same name and namespace in other branches
- 8.3 src/Batch/AuditFilesUsedNotManagedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesUsedNotManagedBatchProcess::__construct()
Class constructor.
Parameters
\Drupal\auditfiles\ServiceAuditFilesUsedNotManaged $used_not_managed: Injected ServiceAuditFilesUsedNotManaged service.
int $file_id: File entity ID to delete.
File
- src/
Batch/ AuditFilesUsedNotManagedBatchProcess.php, line 36
Class
- AuditFilesUsedNotManagedBatchProcess
- Batch Worker to remove files from file_usage not in file_managed table.
Namespace
Drupal\auditfiles\BatchCode
public function __construct(ServiceAuditFilesUsedNotManaged $used_not_managed, $file_id) {
$this->usedNotManaged = $used_not_managed;
$this->fileId = $file_id;
}