Model
StockRegistryProvider
Magento\CatalogInventory\Model\StockRegistryProvider
What it does
This class provides access to inventory stock data (stock, stock items, and stock status) for products in Magento 2.
Developers use it to retrieve cached inventory information for specific products and scopes, with automatic storage in registry for performance optimization.
It acts as a data provider layer that handles loading and caching of stock-related entities.
Public Methods
- getStock()
- getStockItem()
- getStockStatus()