public function EmailSender::__construct in Commerce Email 8
Constructs a new EmailSender object.
Parameters
\Drupal\commerce\MailHandlerInterface $mail_handler: The mail handler.
\Drupal\Core\Utility\Token $token: The token service.
File
- src/
EmailSender.php, line 34
Class
Namespace
Drupal\commerce_emailCode
public function __construct(MailHandlerInterface $mail_handler, Token $token) {
$this->mailHandler = $mail_handler;
$this->token = $token;
}