public function CustomNormalizer::normalize

Normalizes an object into a set of arrays/scalars

Parameters

object $object object to normalize:

string $format format the normalization result will be encoded as:

array $context Context options for the normalizer:

Return value

array|scalar

Overrides NormalizerInterface::normalize

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php, line 22

Class

CustomNormalizer
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function normalize($object, $format = null, array $context = array()) {
  return $object
    ->normalize($this->serializer, $format, $context);
}