Guides
Tutorials
Normalizes the API entrypoint.
class ApiPlatform\JsonApi\Serializer\EntrypointNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
class ApiPlatform\JsonApi\Serializer\EntrypointNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface | |
urlGenerator | ApiPlatform\Api\UrlGeneratorInterface |
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
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
Checks whether the given class is supported for normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): bool
public supportsNormalization($data, null|string $format, array $context): bool
data | ||
format | string | |
context | array |
bool
public hasCacheableSupportsMethod(): bool
public hasCacheableSupportsMethod(): bool
bool