public function MandrillMail::__construct in Mandrill 8
Constructor.
1 call to MandrillMail::__construct()
- MandrillTestMail::__construct in src/
Plugin/ Mail/ MandrillTestMail.php - Constructor.
1 method overrides MandrillMail::__construct()
- MandrillTestMail::__construct in src/
Plugin/ Mail/ MandrillTestMail.php - Constructor.
File
- src/
Plugin/ Mail/ MandrillMail.php, line 53
Class
- MandrillMail
- Modify the Drupal mail system to use Mandrill when sending emails.
Namespace
Drupal\mandrill\Plugin\MailCode
public function __construct() {
$this->config = \Drupal::service('config.factory')
->get('mandrill.settings');
$this->mandrill = \Drupal::service('mandrill.service');
$this->log = \Drupal::service('logger.factory')
->get('mandrill');
$this->mimeTypeGuesser = \Drupal::service('file.mime_type.guesser');
}