You are here

public function ConditionDeleteForm::getCancelUrl in Context 8.4

Same name and namespace in other branches
  1. 8 modules/context_ui/src/Form/ConditionDeleteForm.php \Drupal\context_ui\Form\ConditionDeleteForm::getCancelUrl()
  2. 8.0 modules/context_ui/src/Form/ConditionDeleteForm.php \Drupal\context_ui\Form\ConditionDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ConditionDeleteForm::getCancelUrl()
ConditionDeleteForm::submitForm in modules/context_ui/src/Form/ConditionDeleteForm.php
Form submission handler.

File

modules/context_ui/src/Form/ConditionDeleteForm.php, line 78

Class

ConditionDeleteForm
Provides a Condition delete form.

Namespace

Drupal\context_ui\Form

Code

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