You are here

public function OpenlayersComponentDeleteForm::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 OpenlayersComponentDeleteForm::getCancelUrl()
OpenlayersComponentDeleteForm::submitForm in src/Form/OpenlayersComponentDeleteForm.php
The submit handler for the confirm form.

File

src/Form/OpenlayersComponentDeleteForm.php, line 53

Class

OpenlayersComponentDeleteForm
Class OpenlayersComponentDeleteForm.

Namespace

Drupal\openlayers\Form

Code

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