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