You are here

public function FileDeleteForm::__construct in File Delete (D8/D9) 8

Same name and namespace in other branches
  1. 2.1.x src/Form/FileDeleteForm.php \Drupal\file_delete\Form\FileDeleteForm::__construct()

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

src/Form/FileDeleteForm.php, line 36

Class

FileDeleteForm
Provides a form for deleting a File.

Namespace

Drupal\file_delete\Form

Code

public function __construct(FileUsageInterface $file_usage, EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  $this->fileUsage = $file_usage;
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
}