You are here

public function MultiStepStorage::__construct in User Merge 2.x

MultiStepFormBase constructor.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The temp store factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/MultiStepStorage.php, line 41

Class

MultiStepStorage
Class MultiStepStorage.

Namespace

Drupal\usermerge

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->store = $temp_store_factory
    ->get('usermerge');
  $this->userStorage = $entity_type_manager
    ->getStorage('user');
}