You are here

public function EmailTokenEvaluator::__construct in Easy Email 2.0.x

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

Constructs the EmailTokenEvaluator

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher:

\Drupal\Core\Utility\Token $token:

File

src/Service/EmailTokenEvaluator.php, line 32

Class

EmailTokenEvaluator

Namespace

Drupal\easy_email\Service

Code

public function __construct(EventDispatcherInterface $eventDispatcher, Token $token) {
  $this->token = $token;
  $this->eventDispatcher = $eventDispatcher;
}