function DeleteMultipleForm::getCancelUrl
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getCancelUrl()
- 10 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 - Form submission handler.
2 methods override DeleteMultipleForm::getCancelUrl()
- ConfirmDeleteMultiple::getCancelUrl in core/
modules/ comment/ src/ Form/ ConfirmDeleteMultiple.php - Returns the route to go to if the user cancels the action.
- 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 132
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.