You are here

public function OpenlayersInteractionDeleteForm::getCancelUrl in Openlayers 8.4

Gets the cancel URL.

Provides the URL to go to if the user cancels the action. For entity delete forms, this is typically the route that points at the list controller.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to OpenlayersInteractionDeleteForm::getCancelUrl()
OpenlayersInteractionDeleteForm::submitForm in src/Form/OpenlayersInteractionDeleteForm.php
The submit handler for the confirm form.

File

src/Form/OpenlayersInteractionDeleteForm.php, line 53

Class

OpenlayersInteractionDeleteForm
Class OpenlayersInteractionDeleteForm.

Namespace

Drupal\openlayers\Form

Code

public function getCancelUrl() {
  return new Url('entity.openlayers_interaction.list');
}