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