Property | Type | Description | |
---|---|---|---|
$currentFilterValue | array |
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\Framework\Filter\StripTags $tagFilter, |
Constructor. | |
addFacetToCollection ( $config = [] ) | {@inheritDoc} | |
apply ( Magento\Framework\App\RequestInterface $request ) | {@inheritDoc} | |
hasMoreItems ( ) : boolean | Indicates if the facets has more documents to be displayed. |
Method | Description | |
---|---|---|
_getItemsData ( ) | ||
_initItems ( ) | ||
getFilterField ( ) : string | Retrieve ES filter field. |
Method | Description | |
---|---|---|
addOptionsData ( array $items ) : array | Resort items according option position defined in admin. | |
getFacetConfig ( array $config = [] ) : array | Retrieve configuration of the facet added to the collection. | |
getFacetSize ( ) : integer | Current facet size. |
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\Framework\Filter\StripTags $tagFilter, |
||
$filterItemFactory | Magento\Catalog\Model\Layer\Filter\ItemFactory | Factory for item of the facets. |
$storeManager | Magento\Store\Model\StoreManagerInterface | Store manager. |
$layer | Magento\Catalog\Model\Layer | Catalog product layer. |
$itemDataBuilder | Magento\Catalog\Model\Layer\Filter\Item\DataBuilder | Item data builder. |
$tagFilter | Magento\Framework\Filter\StripTags | String HTML tags filter. |
$mappingHelper | Mapping helper. | |
$data | array | Custom data. |
public apply ( Magento\Framework\App\RequestInterface $request ) | ||
$request | Magento\Framework\App\RequestInterface |
protected getFilterField ( ) : string | ||
return | string |
public hasMoreItems ( ) : boolean | ||
return | boolean |