public function EmailSubscriber::__construct in Commerce Email 8
Constructs a new EmailSubscriber object.
Parameters
\Drupal\commerce_email\EmailSenderInterface $email_sender: The email sender.
File
- src/
EventSubscriber/ EmailSubscriber.php, line 31
Class
- EmailSubscriber
- Subscribes to Symfony events and maps them to email events.
Namespace
Drupal\commerce_email\EventSubscriberCode
public function __construct(EmailSenderInterface $email_sender) {
$this->emailSender = $email_sender;
}