Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-elasticsearch
Elasticsearch5
Model
Adapter
DataMapper
ProductDataMapperProxy.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Elasticsearch\Elasticsearch5\Model\Adapter\DataMapper
;
7
8
use
Magento\AdvancedSearch\Model\Client\ClientResolver
;
9
use
Magento\Elasticsearch\Model\Adapter\DataMapperInterface
;
10
14
class
ProductDataMapperProxy
implements
DataMapperInterface
15
{
19
private
$clientResolver;
20
24
private
$dataMappers;
25
31
public
function
__construct
(
32
ClientResolver
$clientResolver,
33
array $dataMappers
34
) {
35
$this->clientResolver = $clientResolver;
36
$this->dataMappers = $dataMappers;
37
}
38
42
private
function
getDataMapper()
43
{
44
return
$this->dataMappers[$this->clientResolver->getCurrentEngine()];
45
}
46
50
public
function
map
($entityId, array $entityIndexData,
$storeId
, $context = [])
51
{
52
return
$this->getDataMapper()->map($entityId, $entityIndexData,
$storeId
, $context);
53
}
54
}
Magento\Elasticsearch\Elasticsearch5\Model\Adapter\DataMapper\ProductDataMapperProxy\map
map($entityId, array $entityIndexData, $storeId, $context=[])
Definition:
ProductDataMapperProxy.php:50
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Elasticsearch\Model\Adapter\DataMapperInterface
Definition:
DataMapperInterface.php:12
Magento\AdvancedSearch\Model\Client\ClientResolver
Definition:
ClientResolver.php:15
Magento\Elasticsearch\Elasticsearch5\Model\Adapter\DataMapper\ProductDataMapperProxy\__construct
__construct(ClientResolver $clientResolver, array $dataMappers)
Definition:
ProductDataMapperProxy.php:31
Magento\Elasticsearch\Elasticsearch5\Model\Adapter\DataMapper
Definition:
ProductDataMapper.php:7
Magento\Elasticsearch\Elasticsearch5\Model\Adapter\DataMapper\ProductDataMapperProxy
Definition:
ProductDataMapperProxy.php:14