The international conference on the API Platform Framework
Learn more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.
Register nowDecorates 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, ApiPlatform\Serializer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, |`<a href="/docs/references/Api/IriConverterInterface">ApiPlatform\Api\IriConverterInterface</a>` $iriConverter, `<a href="/docs/references/Api/IdentifiersExtractorInterface">ApiPlatform\Metadata\IdentifiersExtractorInterface</a>`|`<a href="/docs/references/Api/IdentifiersExtractorInterface">ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)
public supportsNormalization($data, null|string $format, array $context): bool
public getSupportedTypes($format): array
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, |`<a href="/docs/references/Api/IriConverterInterface">ApiPlatform\Api\IriConverterInterface</a>` $iriConverter, `<a href="/docs/references/Api/IdentifiersExtractorInterface">ApiPlatform\Metadata\IdentifiersExtractorInterface</a>`|`<a href="/docs/references/Api/IdentifiersExtractorInterface">ApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractor)
decorated | Symfony\Component\Serializer\Normalizer\NormalizerInterface | |
iriConverter | `ApiPlatform\Metadata\IriConverterInterface` `ApiPlatform\Api\IriConverterInterface` | |
identifiersExtractor | `ApiPlatform\Metadata\IdentifiersExtractorInterface` `ApiPlatform\Api\IdentifiersExtractorInterface` |
Checks whether the given class is supported for normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): bool
data | ||
format | string | |
context | array |
bool
public getSupportedTypes($format): array
format |
array
public hasCacheableSupportsMethod(): bool
bool
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
object | ||
format | string | |
context | array |
ArrayObject
array
string
int
float
bool
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more