You are here

public function DashboardDeleteForm::getCancelUrl in Draggable dashboard 8

Same name and namespace in other branches
  1. 8.2 src/Form/DashboardDeleteForm.php \Drupal\draggable_dashboard\Form\DashboardDeleteForm::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 DashboardDeleteForm::getCancelUrl()
DashboardDeleteForm::submitForm in src/Form/DashboardDeleteForm.php
Form submission handler.

File

src/Form/DashboardDeleteForm.php, line 76

Class

DashboardDeleteForm
Provides a form to delete Dashboard Form.

Namespace

Drupal\draggable_dashboard\Form

Code

public function getCancelUrl() {
  return new Url('draggable_dashboard.overview');
}