You are here

public function FieldDeleteForm::getCancelUrl in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Form/FieldDeleteForm.php \Drupal\ds\Form\FieldDeleteForm::getCancelUrl()
  2. 8.3 src/Form/FieldDeleteForm.php \Drupal\ds\Form\FieldDeleteForm::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/FieldDeleteForm.php, line 63

Class

FieldDeleteForm
Provides a form to delete a DS field.

Namespace

Drupal\ds\Form

Code

public function getCancelUrl() {
  return new Url('ds.fields_list');
}