You are here

public function FileDeleteForm::__construct in Panopoly 8.2

Constructs a FileDeleteForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity manager.

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

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

\Drupal\file\FileUsage\FileUsageInterface $fileUsage: The file usage service.

Overrides ContentEntityForm::__construct

File

modules/panopoly/panopoly_media/src/Form/FileDeleteForm.php, line 38

Class

FileDeleteForm
Provides a form for deleting a file.

Namespace

Drupal\panopoly_media\Form

Code

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