public function OpignoAnswerRevisionDeleteForm::getCancelUrl in Opigno module 8
Same name and namespace in other branches
- 3.x src/Form/OpignoAnswerRevisionDeleteForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionDeleteForm::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/ OpignoAnswerRevisionDeleteForm.php, line 84
Class
- OpignoAnswerRevisionDeleteForm
- Provides a form for deleting a Answer revision.
Namespace
Drupal\opigno_module\FormCode
public function getCancelUrl() {
return new Url('entity.opigno_answer.version_history', [
'opigno_answer' => $this->revision
->id(),
]);
}