public function TermDeleteForm::getCancelUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Form/TermDeleteForm.php \Drupal\taxonomy\Form\TermDeleteForm::getCancelUrl()
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
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 22 - Contains \Drupal\taxonomy\Form\TermDeleteForm.
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');
}