Reference
I
Interface

ApiPlatform\Api\IdentifiersExtractorInterface

Extracts identifiers for a given Resource according to the retrieved Metadata.

interface ApiPlatform\Api\IdentifiersExtractorInterface
{
    public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array
}
interface ApiPlatform\Api\IdentifiersExtractorInterface
{
    public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array
}

Methods

getIdentifiersFromItem

Finds identifiers from an Item (object).

public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array
public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array

Parameters

itemobject
operationApiPlatform\Metadata\Operation
contextarray

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop