You are here

public function NormalizerWrapper::denormalize in Acquia Content Hub 8

Denormalizes entities.

Parameters

mixed $data: Data for denormalization.

mixed $class: Class to denormalize.

mixed|null $format: Format for denormalization.

array $context: Context for denormalization.

Return value

array|\Drupal\Core\Entity\ContentEntityInterface|null Content Hub Entity denormalized.

File

src/Normalizer/NormalizerWrapper.php, line 91

Class

NormalizerWrapper
Wrapper for the normalizer.

Namespace

Drupal\acquia_contenthub\Normalizer

Code

public function denormalize($data, $class, $format = NULL, array $context = []) {
  return $this->contentEntityCdfNormalizer
    ->denormalize($data, $class, $format, $context);
}