Model
Group
Magento\Customer\Model\Config\Source\Group
What it does
This class provides a source of customer group options for configuration fields in the Magento admin panel.
Developers use it when creating system configuration fields or forms that need a dropdown list of customer groups.
It automatically adds a "Please Select" placeholder option at the beginning of the list and only includes groups available to logged-in customers.
Public Methods
- toOptionArray()