Model
State
Magento\Catalog\Model\Layer\State
What it does
This class manages the state of layered navigation (filtering) in Magento's catalog browsing.
Developers use it to track which filters are currently applied when customers browse product categories, allowing users to filter by attributes like color, price, size, etc.
It maintains an array of active filter items that can be added, retrieved, or set as a collection.
Public Methods
- addFilter()
- setFilters()
- getFilters()