You are here

public function OpignoActivityRevisionDeleteForm::getCancelUrl in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Form/OpignoActivityRevisionDeleteForm.php \Drupal\opigno_module\Form\OpignoActivityRevisionDeleteForm::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

src/Form/OpignoActivityRevisionDeleteForm.php, line 84

Class

OpignoActivityRevisionDeleteForm
Provides a form for deleting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

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