PHP Class Smile\ElasticsuiteCatalog\Model\Layer\Filter\Price

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\CatalogSearch\Model\Layer\Filter\Price, implements Smile\ElasticsuiteCatalog\Model\Layer\Filter\FilterInterface, use trait DecimalFilterTrait
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Catalog\Model\Layer $layer, Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, Magento\Catalog\Model\ResourceModel\Layer\Filter\Price $resource, Magento\Customer\Model\Session $customerSession, Magento\Framework\Search\Dynamic\Algorithm $priceAlgorithm, Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory $algorithmFactory, Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory $dataProviderFactory, array $data = [] ) Constructor.
addFacetToCollection ( $config = [] ) {@inheritDoc}

Protected Methods

Method Description
_renderRangeLabel ( $fromPrice, $toPrice )

Private Methods

Method Description
getFilterField ( ) : string Retrieve ES filter field.

Method Details

__construct() public method

Constructor.
public __construct ( Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Catalog\Model\Layer $layer, Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, Magento\Catalog\Model\ResourceModel\Layer\Filter\Price $resource, Magento\Customer\Model\Session $customerSession, Magento\Framework\Search\Dynamic\Algorithm $priceAlgorithm, Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory $algorithmFactory, Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory $dataProviderFactory, array $data = [] )
$filterItemFactory Magento\Catalog\Model\Layer\Filter\ItemFactory Item filter facotory.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$layer Magento\Catalog\Model\Layer Search layer.
$itemDataBuilder Magento\Catalog\Model\Layer\Filter\Item\DataBuilder Item data builder.
$resource Magento\Catalog\Model\ResourceModel\Layer\Filter\Price Price resource.
$customerSession Magento\Customer\Model\Session Customer session.
$priceAlgorithm Magento\Framework\Search\Dynamic\Algorithm Price algorithm.
$priceCurrency Magento\Framework\Pricing\PriceCurrencyInterface Price currency.
$algorithmFactory Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory Algorithm factory.
$dataProviderFactory Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory Data provider.
$data array Custom data.

_renderRangeLabel() protected method

protected _renderRangeLabel ( $fromPrice, $toPrice )

addFacetToCollection() public method

{@inheritDoc}
public addFacetToCollection ( $config = [] )