public function SettingsForm::__construct in Reroute Email 8
Same name and namespace in other branches
- 2.x src/Form/SettingsForm.php \Drupal\reroute_email\Form\SettingsForm::__construct()
Constructs a new object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 84
Class
- SettingsForm
- Implements a settings form for Reroute Email configuration.
Namespace
Drupal\reroute_email\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, RendererInterface $renderer, EmailValidatorInterface $email_validator) {
parent::__construct($config_factory);
$this->rerouteConfig = $this
->config('reroute_email.settings');
$this->moduleHandler = $module_handler;
$this->renderer = $renderer;
$this->emailValidator = $email_validator;
}