Log in
Model

ItemCollectionProvider

Magento\Catalog\Model\Layer\Search\ItemCollectionProvider

What it does

This class provides product collections specifically for search results in Magento 2's layered navigation system.

Developers use this when building search functionality that requires filtered product collections.

It implements the ItemCollectionProviderInterface to deliver product collections for search layer operations, though it doesn't apply category filtering despite accepting a category parameter.

Public Methods

  • getCollection()