References FilterInterface
Reference
I
Interface

ApiPlatform\Serializer\Filter\FilterInterface

Symfony serializer context builder filter interface.

interface ApiPlatform\Serializer\Filter\FilterInterface implements ApiPlatform\Metadata\FilterInterface
{
    public apply(Symfony\Component\HttpFoundation\Request $request, bool $normalization, array $attributes, array $context): null
    public getDescription(string $resourceClass): array<string, array>
}

Methods

apply

Apply a filter to the serializer context.

public apply(Symfony\Component\HttpFoundation\Request $request, bool $normalization, array $attributes, array $context): null

Parameters

requestSymfony\Component\HttpFoundation\Request
normalizationbool
attributesarray
contextarray

Returns

null

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

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop