You are here

public function AnonymousSubscriptionAccessForm::__construct in Mailing List 8

Construct a new AnonymousSubscriptionAccessForm object.

Parameters

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

\Drupal\Core\Entity\EntityStorageInterface $subscription_storage: The mailing list subscription entity storage.

File

src/Form/AnonymousSubscriptionAccessForm.php, line 40

Class

AnonymousSubscriptionAccessForm
Builds the form to request access to own subscriptions for anonymous users.

Namespace

Drupal\mailing_list\Form

Code

public function __construct(EntityStorageInterface $subscription_storage, MailManagerInterface $mail_manager) {
  $this->subscriptionStorage = $subscription_storage;
  $this->mailManager = $mail_manager;
}