Method | Description | |
---|---|---|
__construct ( Magento\Framework\App\Action\Context $context, Magento\Framework\Controller\Result\JsonFactory $jsonResultFactory, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\Catalog\Model\Layer\FilterList[] $filterListPool = [] ) | Constructor. | |
execute ( ) | {@inheritDoc} |
Method | Description | |
---|---|---|
applyFilters ( ) : |
Apply current filters to the layer product collection. | |
getFilterList ( ) : Magento\Catalog\Model\Layer\FilterList | Return the current filter list for the request. | |
getFilterName ( ) : string | Current request filter name. | |
getItems ( ) : array | Returns array of items loaded through ajax. | |
getLayerType ( ) : string | Current navigation layer type (search or category). | |
initLayer ( ) : |
Init the current navigation layer. | |
isSearch ( ) : boolean | Is the current request a search. |
public __construct ( Magento\Framework\App\Action\Context $context, Magento\Framework\Controller\Result\JsonFactory $jsonResultFactory, Magento\Catalog\Model\Layer\Resolver $layerResolver, Magento\Catalog\Model\Layer\FilterList[] $filterListPool = [] ) | ||
$context | Magento\Framework\App\Action\Context | Controller action context. |
$jsonResultFactory | Magento\Framework\Controller\Result\JsonFactory | JSON result factory. |
$layerResolver | Magento\Catalog\Model\Layer\Resolver | Layer resolver. |
$filterListPool | Magento\Catalog\Model\Layer\FilterList[] | Filter list pool. |