ApiPlatform\Core\DataProvider\ItemDataProviderInterface::getItem PHP Method

getItem() public method

Retrieves an item.
public getItem ( string $resourceClass, integer | string $id, string $operationName = null, array $context = [] ) : object | null
$resourceClass string
$id integer | string
$operationName string
$context array
return object | null
    public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []);
ItemDataProviderInterface