Log in
Model

WeightUnit

Magento\Directory\Model\Config\Source\WeightUnit

What it does

This class provides a list of available weight unit options (pounds and kilograms) for Magento configuration settings.

Developers use this as a source model in system.xml to populate dropdown fields where merchants need to select their preferred weight measurement unit for products and shipping calculations.

Public Methods

  • toOptionArray()