function LinkItemInterface::getUrl
Same name in other branches
- 9 core/modules/link/src/LinkItemInterface.php \Drupal\link\LinkItemInterface::getUrl()
- 10 core/modules/link/src/LinkItemInterface.php \Drupal\link\LinkItemInterface::getUrl()
- 11.x core/modules/link/src/LinkItemInterface.php \Drupal\link\LinkItemInterface::getUrl()
Gets the URL object.
Return value
\Drupal\Core\Url Returns a Url object.
1 method overrides LinkItemInterface::getUrl()
- LinkItem::getUrl in core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php - Gets the URL object.
File
-
core/
modules/ link/ src/ LinkItemInterface.php, line 41
Class
- LinkItemInterface
- Defines an interface for the link field item.
Namespace
Drupal\linkCode
public function getUrl();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.