public function DblogClearLogConfirmForm::getCancelUrl in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::getCancelUrl()
- 9 core/modules/dblog/src/Form/DblogClearLogConfirmForm.php \Drupal\dblog\Form\DblogClearLogConfirmForm::getCancelUrl()
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 DblogClearLogConfirmForm::getCancelUrl()
- DblogClearLogConfirmForm::submitForm in core/
modules/ dblog/ src/ Form/ DblogClearLogConfirmForm.php - Form submission handler.
File
- core/
modules/ dblog/ src/ Form/ DblogClearLogConfirmForm.php, line 61
Class
- DblogClearLogConfirmForm
- Provides a confirmation form before clearing out the logs.
Namespace
Drupal\dblog\FormCode
public function getCancelUrl() {
return new Url('dblog.overview');
}