public EntityDeleteFormTrait::getCancelUrl()
public function getCancelUrl() { $entity = $this->getEntity(); if ($entity->hasLinkTemplate('collection')) { // If available, return the collection URL. return $entity->urlInfo('collection'); } else { // Otherwise fall back to the default link template. return $entity->urlInfo(); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDeleteFormTrait.php/function/EntityDeleteFormTrait::getCancelUrl/8.1.x