You are here

public function LiveWeatherDeleteForm::getCancelUrl in Live Weather 8.2

Same name and namespace in other branches
  1. 8 src/Form/LiveWeatherDeleteForm.php \Drupal\live_weather\Form\LiveWeatherDeleteForm::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/LiveWeatherDeleteForm.php, line 76
Contains \Drupal\live_weather\Form\LiveWeatherDeleteForm.

Class

LiveWeatherDeleteForm
Builds the form to delete the location.

Namespace

Drupal\live_weather\Form

Code

public function getCancelUrl() {
  return new Url('live_weather.location');
}