Context
Magento\CatalogGraphQl\Model\Layer\Context
What it does
This class serves as a context container for GraphQL layered navigation in Magento 2.
It provides access to three key components needed for filtering and managing product collections in GraphQL queries: the collection provider, state key generator, and collection filter.
Developers would use this when implementing custom GraphQL resolvers that need to work with product filtering and layered navigation functionality.
Public Methods
- getCollectionProvider()
- getStateKey()
- getCollectionFilter()