You are here

public function Link::getLinkRelationType in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link::getLinkRelationType()
  2. 9 core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link::getLinkRelationType()

Gets the link's relation type.

Return value

string The link's relation type.

File

core/modules/jsonapi/src/JsonApiResource/Link.php, line 117

Class

Link
Represents an RFC8288 based link.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getLinkRelationType() {
  return $this->rel;
}