Interface

StockStatusFilterInterface

Magento\CatalogInventory\Model\ResourceModel\StockStatusFilterInterface

What it does

This interface defines a contract for filtering product queries based on stock status.

Developers use implementations of this interface to add in-stock constraints to database SELECT queries, ensuring only products with available inventory are retrieved.

It's commonly used in product collections and search results to exclude out-of-stock items.

Public Methods

  • execute()