CollectionFilterInterface
Magento\Catalog\Model\Layer\CollectionFilterInterface
What it does
This interface defines a contract for filtering product collections based on category in Magento 2's catalog layer.
Developers implement this interface to create custom filtering logic that determines which products should be displayed when browsing a specific category.
It's commonly used in layered navigation and category page product listings to apply category-specific filters to product collections.
Public Methods
- filter()