You are here

public function WebformVariantDeleteForm::getCancelUrl in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformVariantDeleteForm.php \Drupal\webform\Form\WebformVariantDeleteForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/WebformVariantDeleteForm.php, line 83

Class

WebformVariantDeleteForm
Form for deleting a webform variant.

Namespace

Drupal\webform\Form

Code

public function getCancelUrl() {
  return $this->webform
    ->toUrl('variants');
}