Log in
Model

CollectionFilter

Magento\Catalog\Model\Layer\Search\CollectionFilter

What it does

This class filters and configures product collections specifically for search results pages.

Developers use it to ensure search results only display publicly visible products with proper pricing, URLs, and store-specific attributes applied.

It's automatically called when building layered navigation on search results pages.

Public Methods

  • filter()