You are here

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

Same name and namespace in other branches
  1. 8.2 src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::getCancelUrl()
  2. 3.x src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to EventAccessResetForm::getCancelUrl()
EventAccessResetForm::submitForm in src/Form/EventAccessResetForm.php
Form submission handler.

File

src/Form/EventAccessResetForm.php, line 118

Class

EventAccessResetForm
Form controller to reset event access to defaults.

Namespace

Drupal\rng\Form

Code

public function getCancelUrl() {
  return new Url('rng.event.' . $this->event
    ->getEntityTypeId() . '.access', [
    $this->event
      ->getEntityTypeId() => $this->event
      ->id(),
  ]);
}