You are here

public function GroupDeleteForm::getCancelUrl in RNG - Events and Registrations 8

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

Class

GroupDeleteForm
Form for deleting a registration group.

Namespace

Drupal\rng\Form

Code

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