You are here

public function DeleteMultiple::__construct in Message 8

Constructs a DeleteMultiple form 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/DeleteMultiple.php, line 40

Class

DeleteMultiple
Provides a message deletion confirmation form.

Namespace

Drupal\message\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->storage = $entity_type_manager
    ->getStorage('message');
}