You are here

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

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

Class

ILTDeleteForm
Provides a form for deleting a opigno_ilt entity.

Namespace

Drupal\opigno_ilt\Form

Code

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