You are here

public function FileDeleteForm::getCancelUrl in Ubercart 8.4

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 FileDeleteForm::getCancelUrl()
FileDeleteForm::submitForm in uc_file/src/Form/FileDeleteForm.php
Form submission handler.

File

uc_file/src/Form/FileDeleteForm.php, line 46

Class

FileDeleteForm
Performs delete file action.

Namespace

Drupal\uc_file\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('uc_file.downloads');
}