public function BackupRestoreForm::getCancelUrl in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Form/BackupRestoreForm.php \Drupal\backup_migrate\Form\BackupRestoreForm::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 BackupRestoreForm::getCancelUrl()
- BackupRestoreForm::submitForm in src/
Form/ BackupRestoreForm.php - Form submission handler.
File
- src/
Form/ BackupRestoreForm.php, line 47
Class
Namespace
Drupal\backup_migrate\FormCode
public function getCancelUrl() {
return $this->destination
->toUrl('backups');
}