You are here

public function NodeTabForm::__construct in Simplenews 3.x

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

Constructs a new NodeTabForm.

Parameters

\Drupal\simplenews\Spool\SpoolStorageInterface $spool_storage: The spool storage.

\Drupal\Core\Session\AccountInterface $current_user: The currently authenticated user.

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

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

File

src/Form/NodeTabForm.php, line 60

Class

NodeTabForm
Configure simplenews subscriptions of a user.

Namespace

Drupal\simplenews\Form

Code

public function __construct(SpoolStorageInterface $spool_storage, AccountInterface $current_user, MailerInterface $simplenews_mailer, EmailValidatorInterface $email_validator) {
  $this->spoolStorage = $spool_storage;
  $this->currentUser = $current_user;
  $this->mailer = $simplenews_mailer;
  $this->emailValidator = $email_validator;
}