You are here

public function Adapter::__construct in Mail System 8.4

Constructor.

Parameters

\Drupal\Core\Mail\MailInterface $formatter: The MailPlugin for formatting the email before sending.

\Drupal\Core\Mail\MailInterface $sender: The MailPlugin for sending the email.

File

src/Adapter.php, line 34

Class

Adapter
Provides an adapter to send emails.

Namespace

Drupal\mailsystem

Code

public function __construct(MailInterface $formatter, MailInterface $sender) {
  $this->instanceFormatter = $formatter;
  $this->instanceSender = $sender;
}