You are here

public function ContentConfirmForm::__construct in GatherContent 8.4

Constructs a DeleteMultiple form object.

Parameters

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

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

File

gathercontent_ui/src/Form/ContentConfirmForm.php, line 57

Class

ContentConfirmForm
Provides a node deletion confirmation form.

Namespace

Drupal\gathercontent_ui\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityManagerInterface $manager, GatherContentClientInterface $client) {
  $this->tempStore = $temp_store_factory
    ->get('gathercontent_multistep_data');
  $this->storage = $manager
    ->getStorage('node');
  $this->nodeIds = $this->tempStore
    ->get('nodes');
  $this->client = $client;
}