You are here

public function NormalizerWrapper::normalize in Acquia Content Hub 8

Normalizes entities.

Parameters

mixed $object: Object to normalize.

mixed|null $format: Format to normalize.

array $context: Context for normalization.

Return value

\Acquia\ContentHubClient\Entity[][]|array|bool|float|int|string|null Content Hub Entity normalized.

File

src/Normalizer/NormalizerWrapper.php, line 108

Class

NormalizerWrapper
Wrapper for the normalizer.

Namespace

Drupal\acquia_contenthub\Normalizer

Code

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