Log in
Model

Generic

Magento\Ups\Model\Config\Source\Generic

What it does

This class serves as a generic source model for UPS shipping configuration options in the Magento admin panel.

Developers use this class (or extend it) to populate dropdown and multiselect fields in the UPS carrier configuration, converting UPS configuration codes into label-value pairs for form elements.

Public Methods

  • toOptionArray()