function ThemeUninstallConfirmForm::getCancelUrl

Same name and namespace in other branches
  1. main core/modules/system/src/Form/ThemeUninstallConfirmForm.php \Drupal\system\Form\ThemeUninstallConfirmForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ThemeUninstallConfirmForm::getCancelUrl()
ThemeUninstallConfirmForm::submitForm in core/modules/system/src/Form/ThemeUninstallConfirmForm.php
Form submission handler.

File

core/modules/system/src/Form/ThemeUninstallConfirmForm.php, line 63

Class

ThemeUninstallConfirmForm
Builds a confirmation form to uninstall a theme.

Namespace

Drupal\system\Form

Code

public function getCancelUrl() : Url {
  return new Url('system.themes_page');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.