public function WebformVariantApplyForm::getCancelUrl in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformVariantApplyForm.php \Drupal\webform\Form\WebformVariantApplyForm::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/ WebformVariantApplyForm.php, line 102
Class
- WebformVariantApplyForm
- Form for apply a webform variant.
Namespace
Drupal\webform\FormCode
public function getCancelUrl() {
return $this->webform
->toUrl('variants');
}