You are here

public function WebformEmailProvider::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformEmailProvider.php \Drupal\webform\WebformEmailProvider::__construct()

Constructs a WebformEmailProvider object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler class to use for loading includes.

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

File

src/WebformEmailProvider.php, line 45

Class

WebformEmailProvider
Manages and provides HTML email support.

Namespace

Drupal\webform

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, MailManagerInterface $mail_manager) {
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->mailManager = $mail_manager;
}