You are here

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

Same name and namespace in other branches
  1. 8.2 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::getCancelUrl()
  2. 8 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::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 EventTypeRuleDeleteAll::getCancelUrl()
EventTypeRuleDeleteAll::submitForm in src/Form/EventTypeRuleDeleteAll.php
Form submission handler.

File

src/Form/EventTypeRuleDeleteAll.php, line 93

Class

EventTypeRuleDeleteAll
Form controller to delete all custom rules for an event type.

Namespace

Drupal\rng\Form

Code

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