public function ProtectedPagesAddForm::__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/ ProtectedPagesAddForm.php, line 69
Class
- ProtectedPagesAddForm
- Provides an add protected page form.
Namespace
Drupal\protected_pages\FormCode
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;
}