You are here

public function SubscriberMassUnsubscribeForm::__construct in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/SubscriberMassUnsubscribeForm.php \Drupal\simplenews\Form\SubscriberMassUnsubscribeForm::__construct()

Constructs a new SubscriberMassUnsubscribeForm.

Parameters

\Drupal\simplenews\Subscription\SubscriptionManagerInterface $subscription_manager: The subscription manager.

\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator.

File

src/Form/SubscriberMassUnsubscribeForm.php, line 39

Class

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

Namespace

Drupal\simplenews\Form

Code

public function __construct(SubscriptionManagerInterface $subscription_manager, EmailValidatorInterface $email_validator) {
  $this->subscriptionManager = $subscription_manager;
  $this->emailValidator = $email_validator;
}