You are here

public function SubscriberValidateForm::__construct in Simplenews 3.x

Constructs a new SubscriberMassSubscribeForm.

Parameters

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.

\Drupal\simplenews\Mail\MailerInterface $mailer: The mailer service.

File

src/Form/SubscriberValidateForm.php, line 41

Class

SubscriberValidateForm
Do a mass subscription for a list of email addresses.

Namespace

Drupal\simplenews\Form

Code

public function __construct(MailManagerInterface $mail_manager, MailerInterface $mailer) {
  $this->mailManager = $mail_manager;
  $this->mailer = $mailer;
}