public function NodeTabForm::__construct in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::__construct()
- 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\FormCode
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;
}