Log in
Factory

SearchCollectionFactory

Magento\Search\Model\SearchCollectionFactory

What it does

This factory class creates instances of SearchCollectionInterface implementations in Magento 2.

Developers use this factory when they need to instantiate search collection objects with optional custom parameters, typically when building search functionality or working with search result collections across different modules.

Public Methods

  • create()