You are here

public function ILTResultDeleteForm::getCancelUrl in Opigno Instructor-led Trainings 8

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

Class

ILTResultDeleteForm
Provides a form for deleting a opigno_ilt_result entity.

Namespace

Drupal\opigno_ilt\Form

Code

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