You are here

public function TestEmailForm::__construct in Reroute Email 8

Same name and namespace in other branches
  1. 2.x src/Form/TestEmailForm.php \Drupal\reroute_email\Form\TestEmailForm::__construct()

Constructs a new object.

Parameters

\Drupal\Core\Mail\MailManagerInterface $mail_manager: Mail manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/Form/TestEmailForm.php, line 66

Class

TestEmailForm
Implements a form to test Reroute Email.

Namespace

Drupal\reroute_email\Form

Code

public function __construct(MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, MessengerInterface $messenger) {
  $this->mailManager = $mail_manager;
  $this->languageManager = $language_manager;
  $this->messenger = $messenger;
}