public function LinkItem::getUrl in Drupal 8
Same name and namespace in other branches
- 9 core/modules/link/src/Plugin/Field/FieldType/LinkItem.php \Drupal\link\Plugin\Field\FieldType\LinkItem::getUrl()
Gets the URL object.
Return value
\Drupal\Core\Url Returns a Url object.
Overrides LinkItemInterface::getUrl
File
- core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php, line 173
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);
}