public function Relationship::setHostEntity in JSON:API 8
Sets the host entity.
Parameters
\Drupal\Core\Entity\EntityInterface $hostEntity: The host entity.
File
- src/
Normalizer/ Relationship.php, line 130
Class
- Relationship
- Represents a relationship between resources.
Namespace
Drupal\jsonapi\NormalizerCode
public function setHostEntity(EntityInterface $hostEntity) {
$this->hostEntity = $hostEntity;
}