You are here

public function ConditionDeleteForm::getCancelUrl in Context 8

Same name and namespace in other branches
  1. 8.4 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 74

Class

ConditionDeleteForm

Namespace

Drupal\context_ui\Form

Code

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