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
framework
Indexer
Handler
AttributeHandler.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Indexer\Handler
;
7
8
use
Magento\Framework\App\ResourceConnection\SourceProviderInterface
;
9
use
Magento\Framework\Indexer\HandlerInterface
;
10
11
class
AttributeHandler
implements
HandlerInterface
12
{
23
public
function
prepareSql
(
SourceProviderInterface
$source
,
$alias
, $fieldInfo)
24
{
25
if
(isset($fieldInfo[
'bind'
])) {
26
if
(!method_exists(
$source
,
'joinAttribute'
)) {
27
return
;
28
}
29
30
$source
->joinAttribute(
31
$fieldInfo[
'name'
],
32
$fieldInfo[
'entity'
] .
'/'
. $fieldInfo[
'origin'
],
33
$fieldInfo[
'bind'
],
34
null
,
35
'left'
36
);
37
}
else
{
38
$source
->addFieldToSelect($fieldInfo[
'origin'
],
'left'
);
39
}
40
}
41
}
Magento\Framework\Indexer\HandlerInterface
Definition:
HandlerInterface.php:14
$source
$source
Definition:
source.php:23
Magento\Framework\Indexer\Handler\AttributeHandler
Definition:
AttributeHandler.php:11
Magento\Framework\App\ResourceConnection\SourceProviderInterface
Definition:
SourceProviderInterface.php:12
Magento\Framework\Indexer\Handler
Definition:
AttributeHandler.php:6
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
Magento\Framework\Indexer\Handler\AttributeHandler\prepareSql
prepareSql(SourceProviderInterface $source, $alias, $fieldInfo)
Definition:
AttributeHandler.php:23