You are here

public function EmailUserEvaluator::__construct in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Service/EmailUserEvaluator.php \Drupal\easy_email\Service\EmailUserEvaluator::__construct()

EmailUserEvaluator constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Service/EmailUserEvaluator.php, line 37

Class

EmailUserEvaluator

Namespace

Drupal\easy_email\Service

Code

public function __construct(EventDispatcherInterface $eventDispatcher, EntityTypeManagerInterface $entityTypeManager) {
  $this->eventDispatcher = $eventDispatcher;
  $this->entityTypeManager = $entityTypeManager;
  $this->userStorage = $entityTypeManager
    ->getStorage('user');
}