public function WorkflowTransitionRevertForm::getCancelUrl in Workflow 8
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/ WorkflowTransitionRevertForm.php, line 54
Class
- WorkflowTransitionRevertForm
- Implements a form to revert an entity to a previous state.
Namespace
Drupal\workflow\FormCode
public function getCancelUrl() {
/** @var \Drupal\workflow\Entity\WorkflowTransitionInterface $transition */
$transition = $this->entity;
return $this
->getUrl($transition);
}