You are here

public function Link::getLinkRelationTypes in Drupal 8

Gets the link's relation types.

@todo: remove this method in https://www.drupal.org/project/drupal/issues/3080467.

Return value

string[] The link's relation types.

File

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

Class

Link
Represents an RFC8288 based link.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getLinkRelationTypes() {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:8.8.0 and will be removed in drupal:9.0.0. Use getLinkRelationType() instead. See https://www.drupal.org/node/3087821.', E_USER_DEPRECATED);
  return $this->rel;
}