You are here

public function ModulesListConfirmForm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Form/ModulesListConfirmForm.php \Drupal\system\Form\ModulesListConfirmForm::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 ModulesListConfirmForm::getCancelUrl()
ModulesListConfirmForm::submitForm in core/modules/system/src/Form/ModulesListConfirmForm.php
Form submission handler.

File

core/modules/system/src/Form/ModulesListConfirmForm.php, line 90
Contains \Drupal\system\Form\ModulesListConfirmForm.

Class

ModulesListConfirmForm
Builds a confirmation form for enabling modules with dependencies.

Namespace

Drupal\system\Form

Code

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