LinkCollection::$context
Same name in other branches
- 9 core/modules/jsonapi/src/JsonApiResource/LinkCollection.php \Drupal\jsonapi\JsonApiResource\LinkCollection::context
- 8.9.x core/modules/jsonapi/src/JsonApiResource/LinkCollection.php \Drupal\jsonapi\JsonApiResource\LinkCollection::context
- 10 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\JsonApiResourceCode
protected $context;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.