You are here

public function AdminForm::__construct in Mime Mail 8

Constructs an AdminForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides ConfigFormBase::__construct

File

src/Form/AdminForm.php, line 64

Class

AdminForm
Mime Mail administrative settings form.

Namespace

Drupal\mimemail\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, MailManagerInterface $mail_manager, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($config_factory);
  $this->mailManager = $mail_manager;
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->entityTypeManager = $entity_type_manager;
}