You are here

public function ProtectedPagesSendEmailForm::__construct in Protected Pages 8

Constructs a new ProtectedPagesSendEmailForm.

Parameters

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

\Egulias\EmailValidator\EmailValidator $email_validator: The email validator.

\Drupal\protected_pages\ProtectedPagesStorage $protectedPagesStorage: The protected pages storage.

\Drupal\Core\Messenger\Messenger $messenger: The messenger service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service interface.

\Drupal\Core\Language\LanguageManager $languageManager: The language manager service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerFactory: The logger channel factory service.

File

src/Form/ProtectedPagesSendEmailForm.php, line 89

Class

ProtectedPagesSendEmailForm
Provides send protected pages details email form.

Namespace

Drupal\protected_pages\Form

Code

public function __construct(MailManagerInterface $mail_manager, EmailValidator $email_validator, ProtectedPagesStorage $protectedPagesStorage, Messenger $messenger, ConfigFactoryInterface $configFactory, LanguageManager $languageManager, LoggerChannelFactoryInterface $loggerFactory) {
  $this->mailManager = $mail_manager;
  $this->emailValidator = $email_validator;
  $this->protectedPagesStorage = $protectedPagesStorage;
  $this->messenger = $messenger;
  $this->configFactory = $configFactory;
  $this->languageManager = $languageManager;
  $this->loggerFactory = $loggerFactory;
}