function TermDeleteForm::getCancelUrl
Same name in other branches
- 8.9.x core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::getCancelUrl()
- 10 core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::getCancelUrl()
- 11.x core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::getCancelUrl()
Overrides ContentEntityDeleteForm::getCancelUrl
1 call to TermDeleteForm::getCancelUrl()
- TermDeleteForm::getRedirectUrl in core/
modules/ taxonomy/ src/ Form/ TermDeleteForm.php - Returns the URL where the user should be redirected after deletion.
File
-
core/
modules/ taxonomy/ src/ Form/ TermDeleteForm.php, line 18
Class
- TermDeleteForm
- Provides a deletion confirmation form for taxonomy term.
Namespace
Drupal\taxonomy\FormCode
public function getCancelUrl() {
// The cancel URL is the vocabulary collection, terms have no global
// list page.
return new Url('entity.taxonomy_vocabulary.collection');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.