You are here

public function ContentConfirmForm::__construct in GatherContent 8.3

Constructs a DeleteMultiple form object.

Parameters

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

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

File

src/Form/ContentConfirmForm.php, line 50

Class

ContentConfirmForm
Provides a node deletion confirmation form.

Namespace

Drupal\gathercontent\Form

Code

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