You are here

public function OpignoAnswerRevisionRevertForm::getCancelUrl in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Form/OpignoAnswerRevisionRevertForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionRevertForm::getCancelUrl()

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/OpignoAnswerRevisionRevertForm.php, line 82

Class

OpignoAnswerRevisionRevertForm
Provides a form for reverting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

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