LinkCollection::$context

Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/src/JsonApiResource/LinkCollection.php \Drupal\jsonapi\JsonApiResource\LinkCollection::context
  2. 10 core/modules/jsonapi/src/JsonApiResource/LinkCollection.php \Drupal\jsonapi\JsonApiResource\LinkCollection::context
  3. 11.x core/modules/jsonapi/src/JsonApiResource/LinkCollection.php \Drupal\jsonapi\JsonApiResource\LinkCollection::context

The link context.

All links objects exist within a context object. Links form a relationship between a source IRI and target IRI. A context is the link's source.

Type: \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel|\Drupal\jsonapi\JsonApiResource\ResourceObject|\Drupal\jsonapi\JsonApiResource\Relationship

See also

https://tools.ietf.org/html/rfc8288#section-3.2

File

core/modules/jsonapi/src/JsonApiResource/LinkCollection.php, line 35

Class

LinkCollection
Contains a set of JSON:API Link objects.

Namespace

Drupal\jsonapi\JsonApiResource

Code

protected $context;

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