You are here

public function ProtectedPagesEditForm::__construct in Protected Pages 8

Constructs a new ProtectedPagesAddForm.

Parameters

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

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

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

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

\Drupal\path_alias\AliasManager $aliasManager: The path alias manager service.

File

src/Form/ProtectedPagesEditForm.php, line 69

Class

ProtectedPagesEditForm
Provides an edit protected page form.

Namespace

Drupal\protected_pages\Form

Code

public function __construct(PathValidatorInterface $path_validator, PasswordInterface $password, ProtectedPagesStorage $protectedPagesStorage, Messenger $messenger, AliasManager $aliasManager) {
  $this->pathValidator = $path_validator;
  $this->password = $password;
  $this->protectedPagesStorage = $protectedPagesStorage;
  $this->messenger = $messenger;
  $this->aliasManager = $aliasManager;
}