public function NodeTabForm::__construct in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::__construct()
- 3.x src/Form/NodeTabForm.php \Drupal\simplenews\Form\NodeTabForm::__construct()
Constructs a new NodeTabForm.
Parameters
\Drupal\simplenews\Spool\SpoolStorageInterface $spool_storage: The spool storage.
\Drupal\simplenews\RecipientHandler\RecipientHandlerManager $recipient_handler_manager: The recipient handler plugin manager.
\Drupal\Core\Session\AccountInterface $current_user: The currently authenticated user.
\Drupal\simplenews\Mail\MailerInterface $simplenews_mailer: The simplenews mailer service.
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, RecipientHandlerManager $recipient_handler_manager, AccountInterface $current_user, MailerInterface $simplenews_mailer) {
$this->spoolStorage = $spool_storage;
$this->recipientHandlerManager = $recipient_handler_manager;
$this->currentUser = $current_user;
$this->mailer = $simplenews_mailer;
}