You are here

public function MapLayerDeleteForm::getCancelUrl in Openlayers 8.4

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/MapLayerDeleteForm.php, line 49

Class

MapLayerDeleteForm
Form for deleting a layer from a map.

Namespace

Drupal\openlayers\Form

Code

public function getCancelUrl() {
  return $this->olMap
    ->toUrl('edit-form');
}