You are here

public function BlockDeleteForm::getCancelUrl in Context 8

Same name and namespace in other branches
  1. 8.4 src/Reaction/Blocks/Form/BlockDeleteForm.php \Drupal\context\Reaction\Blocks\Form\BlockDeleteForm::getCancelUrl()
  2. 8.0 src/Reaction/Blocks/Form/BlockDeleteForm.php \Drupal\context\Reaction\Blocks\Form\BlockDeleteForm::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 BlockDeleteForm::getCancelUrl()
BlockDeleteForm::submitForm in src/Reaction/Blocks/Form/BlockDeleteForm.php
Form submission handler.

File

src/Reaction/Blocks/Form/BlockDeleteForm.php, line 86

Class

BlockDeleteForm

Namespace

Drupal\context\Reaction\Blocks\Form

Code

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