Reference
I
Interface

ApiPlatform\State\ProviderInterface

Retrieves data from a persistence layer.

interface ApiPlatform\State\ProviderInterface
{
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\State\T|ApiPlatform\State\Pagination\PartialPaginatorInterface[]|iterable
}
interface ApiPlatform\State\ProviderInterface
{
    public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\State\T|ApiPlatform\State\Pagination\PartialPaginatorInterface[]|iterable
}

Methods

provide

Provides data.

public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\State\T|ApiPlatform\State\Pagination\PartialPaginatorInterface[]|iterable
public provide(ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context): ApiPlatform\State\T|ApiPlatform\State\Pagination\PartialPaginatorInterface[]|iterable

Parameters

operationApiPlatform\Metadata\Operation
uriVariablesarray
contextarray

Returns

ApiPlatform\State\T
ApiPlatform\State\Pagination\PartialPaginatorInterface[]
iterable

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop