Guides
Tutorials
Extracts identifiers for a given Resource according to the retrieved Metadata.
class ApiPlatform\Api\IdentifiersExtractor implements `<a href="/docs/reference/Api/IdentifiersExtractorInterface">ApiPlatform\Api\IdentifiersExtractorInterface</a>`
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array
}class ApiPlatform\Api\IdentifiersExtractor implements `<a href="/docs/reference/Api/IdentifiersExtractorInterface">ApiPlatform\Api\IdentifiersExtractorInterface</a>`
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)
public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array
}public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, null|Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor)| resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
| resourceClassResolver | ApiPlatform\Api\ResourceClassResolverInterface | |
| propertyNameCollectionFactory | ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface | |
| propertyMetadataFactory | ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface | |
| propertyAccessor | Symfony\Component\PropertyAccess\PropertyAccessorInterface |
Finds identifiers from an Item (object).TODO: 3.0 identifiers should be stringable?
public getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): arraypublic getIdentifiersFromItem(object $item, null|ApiPlatform\Metadata\Operation $operation, array $context): array| item | object | |
| operation | ApiPlatform\Metadata\Operation | |
| context | array |
array