function DeleteMultipleForm::getCancelUrl
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getCancelUrl()
- 8.9.x core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getCancelUrl()
- 11.x core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getCancelUrl()
Overrides ConfirmFormInterface::getCancelUrl
1 call to DeleteMultipleForm::getCancelUrl()
- DeleteMultipleForm::submitForm in core/
lib/ Drupal/ Core/ Entity/ Form/ DeleteMultipleForm.php
2 methods override DeleteMultipleForm::getCancelUrl()
- ConfirmDeleteMultiple::getCancelUrl in core/
modules/ comment/ src/ Form/ ConfirmDeleteMultiple.php - DeleteMultiple::getCancelUrl in core/
modules/ node/ src/ Form/ DeleteMultiple.php - Returns the route to go to if the user cancels the action.
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ DeleteMultipleForm.php, line 135
Class
- DeleteMultipleForm
- Provides an entities deletion confirmation form.
Namespace
Drupal\Core\Entity\FormCode
public function getCancelUrl() {
if ($this->entityType
->hasLinkTemplate('collection')) {
return new Url('entity.' . $this->entityTypeId . '.collection');
}
else {
return new Url('<front>');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.