function ShortcutDeleteForm::getCancelUrl

Same name and namespace in other branches
  1. 9 core/modules/shortcut/src/Form/ShortcutDeleteForm.php \Drupal\shortcut\Form\ShortcutDeleteForm::getCancelUrl()
  2. 8.9.x core/modules/shortcut/src/Form/ShortcutDeleteForm.php \Drupal\shortcut\Form\ShortcutDeleteForm::getCancelUrl()
  3. 10 core/modules/shortcut/src/Form/ShortcutDeleteForm.php \Drupal\shortcut\Form\ShortcutDeleteForm::getCancelUrl()

Overrides ContentEntityDeleteForm::getCancelUrl

1 call to ShortcutDeleteForm::getCancelUrl()
ShortcutDeleteForm::getRedirectUrl in core/modules/shortcut/src/Form/ShortcutDeleteForm.php
Returns the URL where the user should be redirected after deletion.

File

core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 25

Class

ShortcutDeleteForm
Builds the shortcut link deletion form.

Namespace

Drupal\shortcut\Form

Code

public function getCancelUrl() {
    return new Url('entity.shortcut_set.customize_form', [
        'shortcut_set' => $this->entity
            ->bundle(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.