public function MailingListManager::__construct in Mailing List 8
Create a new mailing list manager instance.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Session\SessionManagerInterface $session_manager: The session manager.
\Drupal\user\PrivateTempStoreFactory $user_private_tempstore: The user temp store.
File
- src/
MailingListManager.php, line 46
Class
- MailingListManager
- Mailing list manager implementation.
Namespace
Drupal\mailing_listCode
public function __construct(AccountInterface $current_user, SessionManagerInterface $session_manager, PrivateTempStoreFactory $user_private_tempstore) {
$this->currentUser = $current_user;
$this->sessionManager = $session_manager;
$this->userPrivateTempstore = $user_private_tempstore;
}