trait ResourceObjectToEntityMapperAwareTrait in JSON:API Resources 8
Trait which provides the resource object to entity mapper.
@internal
Hierarchy
- trait \Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapperAwareTrait
File
- src/
Unstable/ Entity/ ResourceObjectToEntityMapperAwareTrait.php, line 10
Namespace
Drupal\jsonapi_resources\Unstable\EntityView source
trait ResourceObjectToEntityMapperAwareTrait {
/**
* The service which created an entity from a resource object.
*
* @var \Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapper
*/
private $resourceObjectToEntityMapper;
/**
* {@inheritdoc}
*
* @see \Drupal\jsonapi_resources\Unstable\Entity\ResourceObjectToEntityMapperAwareInterface::setResourceObjectToEntityMapper()
*/
public function setResourceObjectToEntityMapper(ResourceObjectToEntityMapper $mapper) {
$this->resourceObjectToEntityMapper = $mapper;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ResourceObjectToEntityMapperAwareTrait:: |
private | property | The service which created an entity from a resource object. | |
ResourceObjectToEntityMapperAwareTrait:: |
public | function |