You are here

public function ModalDeleteForm::getCancelUrl in Modal 8.3

Same name and namespace in other branches
  1. 8.2 src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getCancelUrl()
  2. 5.0.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getCancelUrl()
  3. 4.0.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::getCancelUrl()
  4. 4.1.x src/Form/ModalDeleteForm.php \Drupal\modal_page\Form\ModalDeleteForm::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/ModalDeleteForm.php, line 24

Class

ModalDeleteForm
Class: ModalDeleteForm.

Namespace

Drupal\modal_page\Form

Code

public function getCancelUrl() {
  return new Url('modal_page.default');
}