Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConcatHandler.php
Go to the documentation of this file.
1 <?php
7 
10 
12 {
16  protected $concatExpression;
17 
21  public function __construct(
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 }
$source
Definition: source.php:23
prepareSql(SourceProviderInterface $source, $alias, $fieldInfo)
if(!trim($html)) $alias
Definition: details.phtml:20
__construct(\Zend_Db_Expr $concatExpression)