You are here

public function WebformHandlerDeleteForm::getCancelUrl in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformHandlerDeleteForm.php \Drupal\webform\Form\WebformHandlerDeleteForm::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/WebformHandlerDeleteForm.php, line 84

Class

WebformHandlerDeleteForm
Form for deleting a webform handler.

Namespace

Drupal\webform\Form

Code

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