Model

StockConfiguration

Magento\CatalogInventory\Model\Source\StockConfiguration

What it does

This class serves as a value source adapter for retrieving default stock configuration values in Magento 2.

It wraps the StockConfigurationInterface to provide configuration values, automatically converting numeric strings to float values.

Developers would use this when they need to fetch default inventory configuration settings through a standardized value source interface.

Public Methods

  • getValue()