You are here

public function ResourceObjectToEntityMapperAwareTrait::setResourceObjectToEntityMapper in JSON:API Resources 8

See also

\Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapperAwareInterface::setResourceObjectToEntityMapper()

File

src/Unstable/Entity/ResourceObjectToEntityMapperAwareTrait.php, line 24

Class

ResourceObjectToEntityMapperAwareTrait
Trait which provides the resource object to entity mapper.

Namespace

Drupal\jsonapi_resources\Unstable\Entity

Code

public function setResourceObjectToEntityMapper(ResourceObjectToEntityMapper $mapper) {
  $this->resourceObjectToEntityMapper = $mapper;
}