function EntityLinkTargetInterface::getLinkTarget
Gets the generated URL object for a linked entity's link target.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: A linked entity.
Return value
\Drupal\Core\GeneratedUrl The generated URL plus cacheability metadata.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityLinkTargetInterface.php, line 23
Class
- EntityLinkTargetInterface
- Provides an interface for generating a link target from an entity.
Namespace
Drupal\Core\EntityCode
public function getLinkTarget(EntityInterface $entity) : GeneratedUrl;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.