function EmailExampleGetFormPage::__construct
Same name in other branches
- 4.0.x modules/email_example/src/Form/EmailExampleGetFormPage.php \Drupal\email_example\Form\EmailExampleGetFormPage::__construct()
Constructs a new EmailExampleGetFormPage.
Parameters
\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Component\Utility\EmailValidator $email_validator: The email validator.
File
-
modules/
email_example/ src/ Form/ EmailExampleGetFormPage.php, line 50
Class
- EmailExampleGetFormPage
- File test form class.
Namespace
Drupal\email_example\FormCode
public function __construct(MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, EmailValidator $email_validator) {
$this->mailManager = $mail_manager;
$this->languageManager = $language_manager;
$this->emailValidator = $email_validator;
}