You are here

protected function TermDeleteForm::getRedirectUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::getRedirectUrl()
  2. 9 core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::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/taxonomy/src/Form/TermDeleteForm.php, line 27

Class

TermDeleteForm
Provides a deletion confirmation form for taxonomy term.

Namespace

Drupal\taxonomy\Form

Code

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