You are here

public function UserRevisionDeleteForm::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/UserRevisionDeleteForm.php, line 68

Class

UserRevisionDeleteForm
Provides a form for delete a user revision.

Namespace

Drupal\user_revision\Form

Code

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