You are here

public function AuditFilesReferencedNotUsedBatchProcess::__construct in Audit Files 4.x

Same name and namespace in other branches
  1. 8.3 src/Batch/AuditFilesReferencedNotUsedBatchProcess.php \Drupal\auditfiles\Batch\AuditFilesReferencedNotUsedBatchProcess::__construct()

Class constructor.

Parameters

\Drupal\auditfiles\ServiceAuditFilesReferencedNotUsed $referenced_not_used: Injected ServiceAuditFilesUsedNotManaged service.

int $reference_id: File entity ID to delete.

File

src/Batch/AuditFilesReferencedNotUsedBatchProcess.php, line 36

Class

AuditFilesReferencedNotUsedBatchProcess
Process batch files.

Namespace

Drupal\auditfiles\Batch

Code

public function __construct(ServiceAuditFilesReferencedNotUsed $referenced_not_used, $reference_id) {
  $this->referencedNotUsed = $referenced_not_used;
  $this->referenceId = $reference_id;
}