NodeRevisionRevertForm::getCancelUrl

public NodeRevisionRevertForm::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

core/modules/node/src/Form/NodeRevisionRevertForm.php, line 79

Class

NodeRevisionRevertForm
Provides a form for reverting a node revision.

Namespace

Drupal\node\Form

Code

public function getCancelUrl() {
  return new Url('entity.node.version_history', array('node' => $this->revision->id()));
}
doc_Drupal
2016-10-29 09:31:08
Comments
Leave a Comment

Please login to continue.