You are here

protected function ShortcutDeleteForm::getRedirectUrl in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/Form/ShortcutDeleteForm.php \Drupal\shortcut\Form\ShortcutDeleteForm::getRedirectUrl()

Returns the URL where the user should be redirected after deletion.

Return value

\Drupal\Core\Url The redirect URL.

Overrides EntityDeleteFormTrait::getRedirectUrl

File

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

Class

ShortcutDeleteForm
Builds the shortcut link deletion form.

Namespace

Drupal\shortcut\Form

Code

protected function getRedirectUrl() {
  return $this
    ->getCancelUrl();
}