You are here

public function ProtectedPagesSettingForm::__construct in Protected Pages 8

Constructs a new ProtectedPagesSettingForm.

Parameters

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

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Password\PasswordInterface $password: The password hashing service.

Overrides ConfigFormBase::__construct

File

src/Form/ProtectedPagesSettingForm.php, line 66

Class

ProtectedPagesSettingForm
Provides protected pages settings configuration form.

Namespace

Drupal\protected_pages\Form

Code

public function __construct(MailManagerInterface $mail_manager, EmailValidator $email_validator, RendererInterface $renderer, PasswordInterface $password) {
  $this->mailManager = $mail_manager;
  $this->emailValidator = $email_validator;
  $this->renderer = $renderer;
  $this->password = $password;
}