You are here

protected property LinkCollection::$context in Drupal 9

Same name and namespace in other branches
  1. 8 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;