You are here

public function FileDeleteMultipleForm::__construct in File Entity (fieldable files) 8.2

Constructs a FileDeleteMultipleForm object.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Form/FileDeleteMultipleForm.php, line 50

Class

FileDeleteMultipleForm
Provides a file deletion confirmation form.

Namespace

Drupal\file_entity\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->tempStore = $temp_store_factory
    ->get('file_multiple_delete_confirm');
  $this->storage = $entity_type_manager
    ->getStorage('file');
}