public function Relationship::getHostEntity in JSON:API 8
Gets the host entity.
Return value
\Drupal\Core\Entity\EntityInterface The entity which contains this relationship.
File
- src/
Normalizer/ Relationship.php, line 120
Class
- Relationship
- Represents a relationship between resources.
Namespace
Drupal\jsonapi\NormalizerCode
public function getHostEntity() {
return $this->hostEntity;
}