Log in
Model

ItemCollectionProvider

Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider

What it does

This class provides product collections for catalog search category layers in Magento 2.

Developers use this to retrieve filtered product collections that belong to a specific category, which is essential for building layered navigation and search results within category pages.

It implements the ItemCollectionProviderInterface to ensure consistent collection retrieval across the catalog layer system.

Public Methods

  • getCollection()