You are here

public function UserRevisionRevertForm::getCancelUrl in User Revision 8

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/UserRevisionRevertForm.php, line 67

Class

UserRevisionRevertForm
Provides a form for reverting a user revision.

Namespace

Drupal\user_revision\Form

Code

public function getCancelUrl() {
  return new Url('entity.user.version_history', array(
    'user' => $this->revision
      ->id(),
  ));
}