Collection
AddIsInStockFieldToCollection
Magento\InventoryCatalog\Model\ResourceModel\AddIsInStockFieldToCollection
What it does
This class adds stock availability filtering to Magento product collections in multi-source inventory (MSI) environments.
Developers use this when they need to filter product collections based on whether items are in stock for a specific stock source, allowing collections to respect MSI stock configurations rather than just the default stock status.
Public Methods
- execute()