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
ConcatHandler.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Indexer\Handler
;
7
8
use
Magento\Framework\Indexer\HandlerInterface
;
9
use
Magento\Framework\App\ResourceConnection\SourceProviderInterface
;
10
11
class
ConcatHandler
implements
HandlerInterface
12
{
16
protected
$concatExpression
;
17
21
public
function
__construct
(
22
\
Zend_Db_Expr
$concatExpression
23
) {
24
$this->concatExpression =
$concatExpression
;
25
}
26
35
public
function
prepareSql
(
SourceProviderInterface
$source
,
$alias
, $fieldInfo)
36
{
37
$source
->getSelect()->columns([$fieldInfo[
'name'
] => $this->concatExpression]);
38
}
39
}
Magento\Framework\Indexer\HandlerInterface
Definition:
HandlerInterface.php:14
$source
$source
Definition:
source.php:23
Magento\Framework\Indexer\Handler\ConcatHandler
Definition:
ConcatHandler.php:11
Zend_Db_Expr
Definition:
Expr.php:49
Magento\Framework\App\ResourceConnection\SourceProviderInterface
Definition:
SourceProviderInterface.php:12
Magento\Framework\Indexer\Handler\ConcatHandler\prepareSql
prepareSql(SourceProviderInterface $source, $alias, $fieldInfo)
Definition:
ConcatHandler.php:35
Magento\Framework\Indexer\Handler\ConcatHandler\$concatExpression
$concatExpression
Definition:
ConcatHandler.php:16
Magento\Framework\Indexer\Handler
Definition:
AttributeHandler.php:6
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
Magento\Framework\Indexer\Handler\ConcatHandler\__construct
__construct(\Zend_Db_Expr $concatExpression)
Definition:
ConcatHandler.php:21