public function HTMLMailSystem::__construct in HTML Mail 8
Same name and namespace in other branches
- 8.3 src/Plugin/Mail/HtmlMailSystem.php \Drupal\htmlmail\Plugin\Mail\HtmlMailSystem::__construct()
HTMLMailSystem constructor.
Parameters
array $configuration: The configuration array.
int $plugin_id: Plugin ID.
string $plugin_definition: Plugin definition.
\Egulias\EmailValidator\EmailValidator $emailValidator: The email validator service.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.
\Drupal\Core\File\FileSystemInterface $fileSystem: The file system service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger service.
\Drupal\Core\Site\Settings $settings: The site settings service.
\Drupal\Core\Render\Renderer $renderer: The render service.
\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimeTypeGuesser: The mime guesser service.
File
- src/
Plugin/ Mail/ HTMLMailSystem.php, line 66
Class
- HTMLMailSystem
- Modify the Drupal mail system to use HTMLMail when sending emails.
Namespace
Drupal\htmlmail\Plugin\MailCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EmailValidator $emailValidator, ModuleHandlerInterface $moduleHandler, FileSystemInterface $fileSystem, LoggerChannelFactoryInterface $logger, Settings $settings, Renderer $renderer, MimeTypeGuesserInterface $mimeTypeGuesser) {
$this->emailValidator = $emailValidator;
$this->moduleHandler = $moduleHandler;
$this->fileSystem = $fileSystem;
$this->logger = $logger;
$this->systemConfig = \Drupal::config('system.site');
$this->configVariables = \Drupal::config('htmlmail.settings');
$this->siteSettings = $settings;
$this->renderer = $renderer;
$this->mimeType = $mimeTypeGuesser;
}