You are here

public function DeleteMultiple::__construct in Entity API 8.0

Constructs a new DeleteMultiple object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

File

src/Form/DeleteMultiple.php, line 69
Contains \Drupal\entity\Form\DeleteMultiple.

Class

DeleteMultiple
Provides an entities deletion confirmation form.

Namespace

Drupal\entity\Form

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, PrivateTempStoreFactory $temp_store_factory) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->tempStore = $temp_store_factory
    ->get('entity_delete_multiple_confirm');
}