You are here

public function NodeRevisionRevertDefaultForm::getCancelUrl in Thunder 6.2.x

Same name and namespace in other branches
  1. 8.5 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
  2. 8.2 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
  3. 8.3 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
  4. 8.4 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
  5. 6.0.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getCancelUrl()
  6. 6.1.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\Form

Code

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