You are here

public function RebuildPermissionsForm::getCancelUrl in Drupal 10

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

File

core/modules/node/src/Form/RebuildPermissionsForm.php, line 33

Class

RebuildPermissionsForm
Form for rebuilding permissions.

Namespace

Drupal\node\Form

Code

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