public function SettingsForm::__construct in PHPMailer SMTP 8
Same name and namespace in other branches
- 2.x src/Form/SettingsForm.php \Drupal\phpmailer_smtp\Form\SettingsForm::__construct()
- 2.0.x src/Form/SettingsForm.php \Drupal\phpmailer_smtp\Form\SettingsForm::__construct()
- 2.1.x src/Form/SettingsForm.php \Drupal\phpmailer_smtp\Form\SettingsForm::__construct()
Constructor.
Parameters
\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 49
Class
- SettingsForm
- Defines a form to configure PHPMailer SMTP settings.
Namespace
Drupal\phpmailer_smtp\FormCode
public function __construct(MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler) {
$this->mailManager = $mail_manager;
$this->languageManager = $language_manager;
$this->moduleHandler = $module_handler;
}