public function Link::getHref in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link::getHref()
- 9 core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link::getHref()
Gets the link's URI as a string.
Return value
string The link's URI as a string.
File
- core/
modules/ jsonapi/ src/ JsonApiResource/ Link.php, line 107
Class
- Link
- Represents an RFC8288 based link.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getHref() {
return $this->href;
}