public function BatchGenerator::__construct in User Merge 2.x
BatchGenerator constructor.
Parameters
\Drupal\usermerge\UserMergerInterface $user_merger: The user merger service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\usermerge\MultiStepStorageInterface $multi_step_storage: Multi step storage.
\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/
BatchGenerator.php, line 66
Class
- BatchGenerator
- Class BatchGenerator.
Namespace
Drupal\usermergeCode
public function __construct(UserMergerInterface $user_merger, MessengerInterface $messenger, MultiStepStorageInterface $multi_step_storage, EntityTypeManagerInterface $entity_type_manager) {
$this->userMerger = $user_merger;
$this->messenger = $messenger;
$this->multiStepStorage = $multi_step_storage;
$this->userStorage = $entity_type_manager
->getStorage('user');
}