function Relationship::getContext
Same name in other branches
- 9 core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::getContext()
- 10 core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::getContext()
- 11.x core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::getContext()
Gets context resource object of the relationship.
Return value
\Drupal\jsonapi\JsonApiResource\ResourceObject The context ResourceObject.
See also
\Drupal\jsonapi\JsonApiResource\Relationship::$context
File
-
core/
modules/ jsonapi/ src/ JsonApiResource/ Relationship.php, line 138
Class
- Relationship
- Represents references from one resource object to other resource object(s).
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getContext() {
return $this->context;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.