Reference
I
Interface

ApiPlatform\Serializer\Filter\FilterInterface

Symfony serializer context builder filter interface.

interface ApiPlatformApiPlatform\Metadata\FilterInterface
{
    public apply(Symfony\Component\HttpFoundation\Request $request, bool $normalization, array $attributes, array $context): null
    public getDescription(string $resourceClass): array
}
interfaceApiPlatform\Metadata\FilterInterface
{
    public apply(Symfony\Component\HttpFoundation\Request $request, bool $normalization, array $attributes, array $context): null
    public getDescription(string $resourceClass): array
}

Methods

apply

Apply a filter to the serializer context.

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

Parameters

requestSymfony\Component\HttpFoundation\Request
normalizationbool
attributesarray
contextarray

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop