Group
Magento\Customer\Model\Customer\Source\Group
What it does
This class provides a source model for retrieving customer groups as option arrays, commonly used in dropdowns, multi-selects, and system configuration fields.
Developers use this when they need to populate form fields with available customer groups, including an 'ALL GROUPS' option.
It's particularly useful in admin grids, filters, and configuration settings where customer group selection is required.
Public Methods
- toOptionArray()