public function ProtectedPagesDeleteConfirmForm::__construct in Protected Pages 8
Constructs a ProtectedPagesController object.
Parameters
\Drupal\protected_pages\ProtectedPagesStorage $protectedPagesStorage: The protected pages storage service.
\Drupal\Core\Messenger\Messenger $messenger: The messenger service.
File
- src/
Form/ ProtectedPagesDeleteConfirmForm.php, line 46
Class
- ProtectedPagesDeleteConfirmForm
- Provides delete protected page confirm form.
Namespace
Drupal\protected_pages\FormCode
public function __construct(ProtectedPagesStorage $protectedPagesStorage, Messenger $messenger) {
$this->protectedPagesStorage = $protectedPagesStorage;
$this->messenger = $messenger;
}