You are here

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

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

Class

RuleDeleteForm
Form for deleting a rng rule.

Namespace

Drupal\rng\Form

Code

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