public function NodeRevisionRevertDefaultForm::getCancelUrl in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
- 8.2 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
- 8.3 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
- 8.4 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
- 6.2.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
- 6.0.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides NodeRevisionRevertForm::getCancelUrl
1 call to NodeRevisionRevertDefaultForm::getCancelUrl()
- NodeRevisionRevertDefaultForm::submitForm in modules/
thunder_article/ src/ Form/ NodeRevisionRevertDefaultForm.php - Form submission handler.
File
- modules/
thunder_article/ src/ Form/ NodeRevisionRevertDefaultForm.php, line 35
Class
- NodeRevisionRevertDefaultForm
- Provides a form for reverting a node revision.
Namespace
Drupal\thunder_article\FormCode
public function getCancelUrl() {
return new Url('entity.node.edit_form', [
'node' => $this->revision
->id(),
]);
}