References IdentifiersExtractor
Reference
C
Class

ApiPlatform\Metadata\IdentifiersExtractor

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

Methods

__construct

Parameters

resourceMetadataFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
resourceClassResolver`ApiPlatform\Api\ResourceClassResolverInterface`
`ApiPlatform\Metadata\ResourceClassResolverInterface`
propertyNameCollectionFactory`ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface`
propertyMetadataFactory`ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface`
propertyAccessorSymfony\Component\PropertyAccess\PropertyAccessorInterface

getIdentifiersFromItem

Finds identifiers from an Item (object).TODO: 3.0 identifiers should be stringable?

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

Parameters

itemobject
operation`ApiPlatform\Metadata\Operation`
contextarray

Returns

array

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