Log in
Model

ItemCollectionProvider

Magento\Catalog\Model\Layer\Search\ItemCollectionProvider

What it does

This class provides product collections specifically for search result pages in Magento 2.

It implements the ItemCollectionProviderInterface and creates fresh product collections that can be filtered and manipulated for search layer navigation.

Developers use this when building or customizing search functionality to retrieve products matching search queries.

Public Methods

  • getCollection()