function WorkflowTransitionDeleteForm::getCancelUrl

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php \Drupal\workflows\Form\WorkflowTransitionDeleteForm::getCancelUrl()
  2. 8.9.x core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php \Drupal\workflows\Form\WorkflowTransitionDeleteForm::getCancelUrl()
  3. 10 core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php \Drupal\workflows\Form\WorkflowTransitionDeleteForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to WorkflowTransitionDeleteForm::getCancelUrl()
WorkflowTransitionDeleteForm::submitForm in core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php
Form submission handler.

File

core/modules/workflows/src/Form/WorkflowTransitionDeleteForm.php, line 55

Class

WorkflowTransitionDeleteForm
Builds the form to delete transitions from Workflow entities.

Namespace

Drupal\workflows\Form

Code

public function getCancelUrl() {
  return $this->workflow
    ->toUrl();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.