You are here

public function TableDragExampleResetForm::getCancelUrl in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/tabledrag_example/src/Form/TableDragExampleResetForm.php \Drupal\tabledrag_example\Form\TableDragExampleResetForm::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

tabledrag_example/src/Form/TableDragExampleResetForm.php, line 60

Class

TableDragExampleResetForm
Table drag example reset form.

Namespace

Drupal\tabledrag_example\Form

Code

public function getCancelUrl() {
  return new Url('tabledrag_example.description');
}