Magento 2 Get all the attribute list which are used in Layered Navigation in category page and search page.
You can get all the filterable attribute list by Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory class.
The result will be all those attributes that have,
- Use in Layered Navigation status are Filterable (with results)
- Filterable (no results)
Continue reading “Magento 2 Get layered navigation filterable attributes list.”