You are here

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\Normalizer

Code

public function setHostEntity(EntityInterface $hostEntity) {
  $this->hostEntity = $hostEntity;
}