public function WebformVariantDeleteForm::getCancelUrl in Webform 8.5
Same name and namespace in other branches
- 6.x 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\FormCode
public function getCancelUrl() {
return $this->webform
->toUrl('variants');
}