function RouterRebuildConfirmForm::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/RouterRebuildConfirmForm.php, line 50

Class

RouterRebuildConfirmForm
Provides confirmation form for rebuilding the routes.

Namespace

Drupal\devel\Form

Code

public function getCancelUrl() : Url {
  return new Url('<front>');
}