PHP Class Smile\ElasticsuiteCore\Block\Search\Form\Autocomplete

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Framework\View\Element\Template
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, Magento\Framework\Locale\FormatInterface $localeFormat, array $data, array $rendererList = [] ) Mini constructor.
getJsonPriceFormat ( ) : array Retrieve price format configuration in Json.
getJsonSuggestRenderers ( ) : string Retrieve Renderers used to draw the suggest in JSON format
getSuggestRenderers ( ) : array Retrieve templates renderers for autocomplete results

Protected Methods

Method Description
getPriceFormat ( ) : array Retrieve price format configuration.

Method Details

__construct() public method

Mini constructor.
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Magento\Framework\Locale\FormatInterface $localeFormat, array $data, array $rendererList = [] )
$context Magento\Framework\View\Element\Template\Context Block context
$jsonHelper Magento\Framework\Json\Helper\Data JSON helper
$localeFormat Magento\Framework\Locale\FormatInterface Locale Format
$data array The data
$rendererList array The renderers used for autocomplete rendering

getJsonPriceFormat() public method

Retrieve price format configuration in Json.
public getJsonPriceFormat ( ) : array
return array

getJsonSuggestRenderers() public method

Retrieve Renderers used to draw the suggest in JSON format
public getJsonSuggestRenderers ( ) : string
return string

getPriceFormat() protected method

Retrieve price format configuration.
protected getPriceFormat ( ) : array
return array

getSuggestRenderers() public method

Retrieve templates renderers for autocomplete results
public getSuggestRenderers ( ) : array
return array