public function RelationshipItem::getTargetEntity in JSON:API 8
Gets the target entity.
Return value
\Drupal\Core\Entity\EntityInterface|null The target entity of this relationship item.
File
- src/
Normalizer/ RelationshipItem.php, line 95
Class
- RelationshipItem
- Value object representing a JSON API relationship item.
Namespace
Drupal\jsonapi\NormalizerCode
public function getTargetEntity() {
return $this->targetEntity;
}