Log in
Model

ValueProvider

Magento\SalesRule\Model\Rule\Metadata\ValueProvider

What it does

This class provides metadata and configuration values for the sales rule (cart price rule) edit form in Magento's admin panel.

Developers use this when customizing or extending the sales rule form UI, as it supplies dropdown options for fields like customer groups, coupon types, website selection, and discount actions.

It acts as a data provider that merges dynamic values (from database) with the form's UI component structure.

Public Methods

  • getMetadataValues()