You are here

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

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

Class constructor.

Parameters

\Drupal\auditfiles\ServiceAuditFilesManagedNotUsed $managed_not_used: Injected ServiceAuditFilesManagedNotUsed service.

int $file_id: File entity ID to delete.

File

src/Batch/AuditFilesManagedNotUsedBatchProcess.php, line 36

Class

AuditFilesManagedNotUsedBatchProcess
Batch Worker to handle Deleting entity records from file_managed table.

Namespace

Drupal\auditfiles\Batch

Code

public function __construct(ServiceAuditFilesManagedNotUsed $managed_not_used, $file_id) {
  $this->managedNotUsed = $managed_not_used;
  $this->fileId = $file_id;
}