You are here

public function ResourceObjectToEntityMapper::__construct in JSON:API Resources 8

Constructs an EntityDenormalizerBase object.

Parameters

\Drupal\jsonapi\Serializer\Serializer $serializer: The JSON:API serializer. Concrete type hint is intentional.

File

src/Unstable/Entity/ResourceObjectToEntityMapper.php, line 40

Class

ResourceObjectToEntityMapper
Service which maps a resource object into an entity.

Namespace

Drupal\jsonapi_resources\Unstable\Entity

Code

public function __construct(Serializer $serializer) {
  $this->serializer = $serializer;
}