PHP Class Smile\ElasticsuiteTracker\Block\Variables\Page\Search

Author: Romain Ruaud ([email protected])
Inheritance: extends AbstractBlock
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, Magento\Framework\Registry $registry, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\CatalogSearch\Helper\Data $catalogSearchData, array $data = [] ) Set the default template for page variable blocks
getVariables ( ) : array Append the user fulltext query to the tracked variables list

Method Details

__construct() public method

Set the default template for page variable blocks
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, Magento\Framework\Registry $registry, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\CatalogSearch\Helper\Data $catalogSearchData, array $data = [] )
$context Magento\Framework\View\Element\Template\Context The template context
$jsonHelper Magento\Framework\Json\Helper\Data The Magento's JSON Helper
$trackerHelper Smile\ElasticsuiteTracker\Helper\Data The Smile Tracker helper
$registry Magento\Framework\Registry Magento Core Registry
$layerResolver Magento\Catalog\Model\Layer\Resolver The Magento layer resolver
$catalogSearchData Magento\CatalogSearch\Helper\Data The Catalogsearch data
$data array The block data

getVariables() public method

Append the user fulltext query to the tracked variables list
public getVariables ( ) : array
return array