You are here

public function PushChangesConfirm::__construct in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Form/PushChangesConfirm.php \Drupal\cms_content_sync\Form\PushChangesConfirm::__construct()
  2. 2.0.x src/Form/PushChangesConfirm.php \Drupal\cms_content_sync\Form\PushChangesConfirm::__construct()

Constructs a DeleteMultiple form object.

Parameters

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

\Drupal\Core\Entity\EntityTypeManager $manager: The entity manager

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/PushChangesConfirm.php, line 54

Class

PushChangesConfirm
Provides a node deletion confirmation form.

Namespace

Drupal\cms_content_sync\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManager $manager) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->storage = $manager
    ->getStorage('node');
  $this->nodes = $this->tempStoreFactory
    ->get('node_cms_content_sync_push_changes_confirm')
    ->get('nodes');
}