Log in
Model

WeightUnit

Magento\Directory\Model\Config\Backend\WeightUnit

What it does

This backend model validates and saves the weight unit configuration setting in Magento's admin panel.

Developers would use this class when customizing weight unit options or implementing validation logic for the system's weight measurement settings stored in the Directory module configuration.

Public Methods

  • beforeSave()