public function Relationship::getData in Drupal 8
Same name and namespace in other branches
- 9 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()
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;
}