You are here

public function WorkspaceDeleteForm::getCancelUrl in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/Form/WorkspaceDeleteForm.php \Drupal\opigno_moxtra\Form\WorkspaceDeleteForm::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/WorkspaceDeleteForm.php, line 33

Class

WorkspaceDeleteForm
Provides a form for deleting a opigno_moxtra_workspace entity.

Namespace

Drupal\opigno_moxtra\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('opigno_moxtra.workspace', [
    'opigno_moxtra_workspace' => $this->entity
      ->id(),
  ]);
}