You are here

public function YamlFormUiElementDeleteForm::getCancelUrl in YAML Form 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php, line 165

Class

YamlFormUiElementDeleteForm
Form for deleting a form element.

Namespace

Drupal\yamlform_ui\Form

Code

public function getCancelUrl() {
  return $this->yamlform
    ->toUrl('edit-form');
}