Decimal
Magento\Catalog\Model\Layer\Filter\Decimal
What it does
This class implements a layered navigation filter for decimal product attributes in Magento 2's catalog.
Developers use this to create range-based filters (like weight ranges) in product listings, allowing customers to filter products by selecting decimal attribute ranges.
The filter processes URL parameters, applies the range to the product collection, and generates filter items with formatted labels.
Public Methods
- apply()