You are here

public function ModalPublishedForm::getCancelUrl in Modal 8.3

Same name and namespace in other branches
  1. 8.2 src/Form/ModalPublishedForm.php \Drupal\modal_page\Form\ModalPublishedForm::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/ModalPublishedForm.php, line 37

Class

ModalPublishedForm
Class: ModalPublishedForm.

Namespace

Drupal\modal_page\Form

Code

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