Resolver
Magento\Catalog\Model\Layer\Resolver
What it does
This class manages the creation and retrieval of catalog layer instances in Magento 2, which are used for filtering and displaying products in category and search pages.
Developers use this resolver to get the appropriate layer type (category or search) for building layered navigation and product collections.
It ensures only one layer instance exists per request and automatically defaults to the category layer if none is specified.
Public Methods
- create()
- get()
- _resetState()