You are here

public function WeatherDisplayPlaceDeleteForm::getCancelUrl in Weather 8

Same name and namespace in other branches
  1. 2.0.x src/Form/WeatherDisplayPlaceDeleteForm.php \Drupal\weather\Form\WeatherDisplayPlaceDeleteForm::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/WeatherDisplayPlaceDeleteForm.php, line 27

Class

WeatherDisplayPlaceDeleteForm
Provides a form for deleting a weather_display_place entity.

Namespace

Drupal\weather\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('weather.settings');
}