You are here

public function RelationshipItem::getParent in JSON:API 8

Gets the relationship object that contains this relationship item.

Return value

\Drupal\jsonapi\Normalizer\Relationship The parent relationship of this item.

File

src/Normalizer/RelationshipItem.php, line 134

Class

RelationshipItem
Value object representing a JSON API relationship item.

Namespace

Drupal\jsonapi\Normalizer

Code

public function getParent() {
  return $this->parent;
}