function RebuildPermissionsForm::getCancelUrl

Same name and namespace in other branches
  1. 8.9.x core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::getCancelUrl()
  2. 10 core/modules/node/src/Form/RebuildPermissionsForm.php \Drupal\node\Form\RebuildPermissionsForm::getCancelUrl()
  3. 11.x 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');
}

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