Property | Type | Description | |
---|---|---|---|
$catalogSearchData | Magento\CatalogSearch\Helper\Data | Catalog search data | |
$layer | Magento\Catalog\Model\Layer | ||
$queryFactory | Magento\Search\Model\QueryFactory | ||
$queryResource | |||
$resultCount | integer |
Method | Description | |
---|---|---|
__construct ( Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\CatalogSearch\Helper\Data $catalogSearchData, Magento\Search\Model\QueryFactory $queryFactory, |
Constructor. | |
aroundGetNoteMessages ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : string[] | Append the fuzziness alert message + save the search result count. | |
aroundGetResultCount ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : integer | Avoid the search result count to be saved by the original method. | |
aroundSetListOrders ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : Magento\CatalogSearch\Block\Result | Change default behavior of the search result block. |
Method | Description | |
---|---|---|
getProductCollection ( ) : Magento\Catalog\Model\ResourceModel\Product\Collection | Return the current layer product collection. | |
isSpellcheck ( ) : boolean | Indicates if the current search is spellchecked. |
public __construct ( Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\CatalogSearch\Helper\Data $catalogSearchData, Magento\Search\Model\QueryFactory $queryFactory, |
||
$layerResolver | Magento\Catalog\Model\Layer\Resolver | Layer. |
$catalogSearchData | Magento\CatalogSearch\Helper\Data | Catalog search helper. |
$queryFactory | Magento\Search\Model\QueryFactory | Search query factory. |
$queryResource | Search query resource. |
public aroundGetNoteMessages ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : string[] | ||
$resultBlock | Magento\CatalogSearch\Block\Result | Result block. |
$proceed | Closure | Original method. |
return | string[] |
public aroundGetResultCount ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : integer | ||
$resultBlock | Magento\CatalogSearch\Block\Result | Result block. |
$proceed | Closure | Original method. |
return | integer |
public aroundSetListOrders ( Magento\CatalogSearch\Block\Result $resultBlock, Closure $proceed ) : Magento\CatalogSearch\Block\Result | ||
$resultBlock | Magento\CatalogSearch\Block\Result | Result block. |
$proceed | Closure | Original method. |
return | Magento\CatalogSearch\Block\Result |
protected Data,Magento\CatalogSearch\Helper $catalogSearchData | ||
return | Magento\CatalogSearch\Helper\Data |
protected Layer,Magento\Catalog\Model $layer | ||
return | Magento\Catalog\Model\Layer |
protected QueryFactory,Magento\Search\Model $queryFactory | ||
return | Magento\Search\Model\QueryFactory |
protected Query,Smile\ElasticsuiteCatalog\Model\ResourceModel\Search $queryResource | ||
return |