function ResourceObject::getLinks

Same name in other branches
  1. 8.9.x core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLinks()
  2. 10 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLinks()
  3. 11.x core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLinks()

Gets the ResourceObject's links.

Return value

\Drupal\jsonapi\JsonApiResource\LinkCollection The resource object's links.

File

core/modules/jsonapi/src/JsonApiResource/ResourceObject.php, line 188

Class

ResourceObject
Represents a JSON:API resource object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getLinks() {
    return $this->links;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.