You are here

public function DeleteMultiple::__construct in Message UI 8

Constructs a DeleteMultiple form object.

Parameters

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

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/DeleteMultiple.php, line 51

Class

DeleteMultiple
Provides a message deletion confirmation form.

Namespace

Drupal\message_ui\Form

Code

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