Guides
Tutorials
Decorates the output with GraphQL metadata when appropriate, but otherwise just passes through to the decorated normalizer.
class ApiPlatform\GraphQl\Serializer\ObjectNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
}class ApiPlatform\GraphQl\Serializer\ObjectNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
}public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)| decorated | Symfony\Component\Serializer\Normalizer\NormalizerInterface | |
| iriConverter | ApiPlatform\Api\IriConverterInterface | |
| identifiersExtractor | ApiPlatform\Api\IdentifiersExtractorInterface |
Checks whether the given class is supported for normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): boolpublic supportsNormalization($data, null|string $format, array $context): bool| data | ||
| format | string | |
| context | array |
bool
public hasCacheableSupportsMethod(): boolpublic hasCacheableSupportsMethod(): boolbool
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|boolpublic normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool| object | ||
| format | string | |
| context | array |
ArrayObject
array
string
int
float
bool