Model
CustomerGroupsOptionsProvider
Magento\CatalogRule\Model\Rule\CustomerGroupsOptionsProvider
What it does
This class provides a list of customer groups as options for catalog price rules.
Developers use it to populate dropdown menus in the admin panel where catalog rules can be applied to specific customer groups.
It retrieves all customer groups and formats them into a key-value array suitable for form elements.
Public Methods
- toOptionArray()