Log in
Model

CollectionProvider

Magento\CatalogGraphQl\Model\Layer\CollectionProvider

What it does

This class provides product collections specifically for GraphQL layered navigation queries in Magento 2.

Developers would use this class when implementing custom GraphQL resolvers that need to retrieve and filter product collections for category pages or search results.

It implements the ItemCollectionProviderInterface to ensure compatibility with Magento's layered navigation system.

Public Methods

  • getCollection()