function LinkItem::getUrl
Same name in other branches
- 9 core/modules/link/src/Plugin/Field/FieldType/LinkItem.php \Drupal\link\Plugin\Field\FieldType\LinkItem::getUrl()
- 8.9.x core/modules/link/src/Plugin/Field/FieldType/LinkItem.php \Drupal\link\Plugin\Field\FieldType\LinkItem::getUrl()
- 10 core/modules/link/src/Plugin/Field/FieldType/LinkItem.php \Drupal\link\Plugin\Field\FieldType\LinkItem::getUrl()
Overrides LinkItemInterface::getUrl
File
-
core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php, line 179
Class
- LinkItem
- Plugin implementation of the 'link' field type.
Namespace
Drupal\link\Plugin\Field\FieldTypeCode
public function getUrl() {
return Url::fromUri($this->uri, (array) $this->options);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.