You are here

public function BackupDeleteForm::getCancelUrl in Backup and Migrate 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Form/BackupDeleteForm.php \Drupal\backup_migrate\Form\BackupDeleteForm::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 BackupDeleteForm::getCancelUrl()
BackupDeleteForm::submitForm in src/Form/BackupDeleteForm.php
Form submission handler.

File

src/Form/BackupDeleteForm.php, line 58

Class

BackupDeleteForm

Namespace

Drupal\backup_migrate\Form

Code

public function getCancelUrl() {
  return $this->destination
    ->toUrl('backups');
}