You are here

public function ContentEntityDenormalizer::denormalize in JSON:API Extras 8.3

Overrides JsonApiNormalizerDecoratorBase::denormalize

File

src/Normalizer/ContentEntityDenormalizer.php, line 15

Class

ContentEntityDenormalizer
Override ContentEntityNormalizer to prepare input.

Namespace

Drupal\jsonapi_extras\Normalizer

Code

public function denormalize($data, $class, $format = NULL, array $context = []) {
  return parent::denormalize($this
    ->prepareInput($data, $context['resource_type']), $class, $format, $context);
}