You are here

public function ExampleForm::__construct in Mime Mail 8

Constructs a new ExampleForm.

Parameters

\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator service.

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

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

File

modules/mimemail_example/src/Form/ExampleForm.php, line 49

Class

ExampleForm
The example email contact form.

Namespace

Drupal\mimemail_example\Form

Code

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