Configuration
Magento\CatalogInventory\Model\Configuration
What it does
This class provides centralized access to Magento 2's catalog inventory configuration settings.
Developers use it to retrieve store-level inventory settings like minimum/maximum sale quantities, backorder settings, stock management flags, and quantity increment rules.
It acts as the primary interface for reading inventory-related configuration values from the database instead of directly accessing system configuration.
Public Methods
- _resetState()
- getDefaultScopeId()
- getIsQtyTypeIds()
- isQty()
- canSubtractQty()
- getMinQty()
- getMinSaleQty()
- getMaxSaleQty()
- getNotifyStockQty()
- getEnableQtyIncrements()
- getQtyIncrements()
- getBackorders()
- getManageStock()
- getCanBackInStock()
- isShowOutOfStock()
- isAutoReturnEnabled()
- isDisplayProductStockStatus()
- getDefaultConfigValue()
- getStockThresholdQty()
- getConfigItemOptions()