You are here

protected function AbstractNormalizer::prepareForDenormalization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Normalizer/AbstractNormalizer.php \Symfony\Component\Serializer\Normalizer\AbstractNormalizer::prepareForDenormalization()

Normalizes the given data to an array. It's particularly useful during the denormalization process.

Parameters

object|array $data:

Return value

array

3 calls to AbstractNormalizer::prepareForDenormalization()
GetSetMethodNormalizer::denormalize in vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php
ObjectNormalizer::denormalize in vendor/symfony/serializer/Normalizer/ObjectNormalizer.php
Denormalizes data back into an object of the given class.
PropertyNormalizer::denormalize in vendor/symfony/serializer/Normalizer/PropertyNormalizer.php

File

vendor/symfony/serializer/Normalizer/AbstractNormalizer.php, line 273

Class

AbstractNormalizer
Normalizer implementation.

Namespace

Symfony\Component\Serializer\Normalizer

Code

protected function prepareForDenormalization($data) {
  return (array) $data;
}