You are here

public function Relationship::getData in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::getData()
  2. 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\JsonApiResource

Code

public function getData() {
  return $this->data;
}