Guides
Tutorials
Adds a view key to the result of a paginated Hydra collection.
class ApiPlatform\Hydra\Serializer\PartialCollectionViewNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, string $pageParameterName, string $enabledParameterName, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
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 setNormalizer(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer): null
}class ApiPlatform\Hydra\Serializer\PartialCollectionViewNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, string $pageParameterName, string $enabledParameterName, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
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 setNormalizer(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer): null
}public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, string $pageParameterName, string $enabledParameterName, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $collectionNormalizer, string $pageParameterName, string $enabledParameterName, null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)| collectionNormalizer | Symfony\Component\Serializer\Normalizer\NormalizerInterface | |
| pageParameterName | string | |
| enabledParameterName | string | |
| resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
| propertyAccessor | Symfony\Component\PropertyAccess\PropertyAccessorInterface |
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
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
Sets the owning Normalizer object.
public setNormalizer(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer): nullpublic setNormalizer(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer): null| normalizer | Symfony\Component\Serializer\Normalizer\NormalizerInterface |
null