public function ProtectedPagesDeleteConfirmForm::getCancelUrl in Protected Pages 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to ProtectedPagesDeleteConfirmForm::getCancelUrl()
- ProtectedPagesDeleteConfirmForm::submitForm in src/
Form/ ProtectedPagesDeleteConfirmForm.php - Form submission handler.
File
- src/
Form/ ProtectedPagesDeleteConfirmForm.php, line 77
Class
- ProtectedPagesDeleteConfirmForm
- Provides delete protected page confirm form.
Namespace
Drupal\protected_pages\FormCode
public function getCancelUrl() {
return new Url('protected_pages_list');
}