You are here

public function SmartDateOverrideDeleteForm::getCancelUrl in Smart Date 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::getCancelUrl()
  2. 3.x modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::getCancelUrl()
  3. 3.1.x modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::getCancelUrl()
  4. 3.2.x modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::getCancelUrl()
  5. 3.3.x modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::getCancelUrl()
  6. 3.4.x modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php \Drupal\smart_date_recur\Form\SmartDateOverrideDeleteForm::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 SmartDateOverrideDeleteForm::getCancelUrl()
SmartDateOverrideDeleteForm::submitForm in modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

modules/smart_date_recur/src/Form/SmartDateOverrideDeleteForm.php, line 26

Class

SmartDateOverrideDeleteForm
Provides a deletion confirmation form for Smart Date Overrides.

Namespace

Drupal\smart_date_recur\Form

Code

public function getCancelUrl() {
  $rrule = $this->entity->rrule
    ->getString();
  return new Url('smart_date_recur.instances', [
    'rrule' => (int) $rrule,
  ]);
}