Model

StockStatusBaseSelectProcessor

Magento\CatalogInventory\Model\ResourceModel\Product\StockStatusBaseSelectProcessor

What it does

This class filters product collection queries to show only in-stock products when the 'Show Out of Stock Products' setting is disabled in Magento admin.

It joins the stock status table to the product select query and adds conditions to exclude out-of-stock items.

Developers would use this when building custom product collections that need to respect stock visibility settings.

Public Methods

  • process()