function ContentEntityDeleteForm::getCancelUrl
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php \Drupal\Core\Entity\ContentEntityDeleteForm::getCancelUrl()
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php \Drupal\Core\Entity\ContentEntityDeleteForm::getCancelUrl()
- 10 core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php \Drupal\Core\Entity\ContentEntityDeleteForm::getCancelUrl()
Overrides ConfirmFormInterface::getCancelUrl
5 methods override ContentEntityDeleteForm::getCancelUrl()
- DeleteForm::getCancelUrl in core/
modules/ comment/ src/ Form/ DeleteForm.php - EntityTestDeleteForm::getCancelUrl in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDeleteForm.php - MenuLinkContentDeleteForm::getCancelUrl in core/
modules/ menu_link_content/ src/ Form/ MenuLinkContentDeleteForm.php - ShortcutDeleteForm::getCancelUrl in core/
modules/ shortcut/ src/ Form/ ShortcutDeleteForm.php - TermDeleteForm::getCancelUrl in core/
modules/ taxonomy/ src/ Form/ TermDeleteForm.php
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityDeleteForm.php, line 82
Class
- ContentEntityDeleteForm
- Provides a generic base class for a content entity deletion form.
Namespace
Drupal\Core\EntityCode
public function getCancelUrl() {
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
$entity = $this->getEntity();
return $entity->isDefaultTranslation() ? $this->traitGetCancelUrl() : $entity->toUrl('canonical');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.