public function EntityDeleteFormTrait8b7c:f320:99b9:690f:4595:cd17:293a:c069getCancelUrl public EntityDeleteFormTrait8b7c:f320:99b9:690f:4595:cd17:293a:c069getCancelUrl() File
 core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 77  Class
 
EntityDeleteFormTrait  Provides a trait for an entity deletion form.  Namespace Drupal\Core\Entity Code 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();
  }
}


    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-entity-entitydeleteformtrait.php/function/entitydeleteformtrait-getcancelurl/8.1.x.html', 'source': 'DevDocs.IO'}