Collection
AddStockStatusToCollection
Magento\CatalogInventory\Model\AddStockStatusToCollection
What it does
This plugin class automatically adds stock status filtering to product collections before they are loaded.
Developers use this to ensure that product collections only include in-stock products by default, preventing out-of-stock items from appearing in catalog listings and search results unless explicitly configured otherwise.
Public Methods
- beforeLoad()