25 private $resourceIndex;
30 private $dataProvider;
35 private $storeManager;
40 private $attributeAdapterProvider;
45 private $fieldNameResolver;
61 $this->resourceIndex = $resourceIndex;
62 $this->dataProvider = $dataProvider;
65 ->get(AttributeProvider::class);
67 ->get(ResolverInterface::class);
75 $priceData = $this->dataProvider->getSearchableAttribute(
'price')
98 if (array_key_exists(
$productId, $priceIndexData)) {
99 $productPriceIndexData = $priceIndexData[
$productId];
100 $priceAttribute = $this->attributeAdapterProvider->getByAttributeCode(
'price');
101 foreach ($productPriceIndexData as $customerGroupId =>
$price) {
102 $fieldName = $this->fieldNameResolver->getFieldName(
104 [
'customerGroupId' => $customerGroupId,
'websiteId' =>
$websiteId]
__construct(Index $resourceIndex, DataProvider $dataProvider, StoreManagerInterface $storeManager, AttributeProvider $attributeAdapterProvider=null, ResolverInterface $fieldNameResolver=null)
getFields(array $productIds, $storeId)