function ShortcutLinkTarget::getLinkTarget
File
-
core/
modules/ shortcut/ src/ Entity/ ShortcutLinkTarget.php, line 26
Class
- ShortcutLinkTarget
- Provides a Shortcut link target handler.
Namespace
Drupal\shortcut\EntityCode
public function getLinkTarget(EntityInterface $entity) : GeneratedUrl {
assert($entity instanceof ShortcutInterface);
return $entity->getUrl()
->toString(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.