You are here

public function AuditFilesUsedNotManagedBatchProcess::__construct in Audit Files 8.3

Same name and namespace in other branches
  1. 4.x 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\Batch

Code

public function __construct(ServiceAuditFilesUsedNotManaged $used_not_managed, $file_id) {
  $this->usedNotManaged = $used_not_managed;
  $this->fileId = $file_id;
}