You are here

public function RegistrationDeleteForm::getCancelUrl in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/RegistrationDeleteForm.php \Drupal\rng\Form\RegistrationDeleteForm::getCancelUrl()
  2. 8 src/Form/RegistrationDeleteForm.php \Drupal\rng\Form\RegistrationDeleteForm::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/RegistrationDeleteForm.php, line 23

Class

RegistrationDeleteForm
Form for deleting a registration.

Namespace

Drupal\rng\Form

Code

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