Log in
Model

Group

Magento\Customer\Model\Config\Source\Group

What it does

This class provides a source model for customer group dropdown options in admin configuration forms.

It returns an array of customer groups (excluding 'NOT LOGGED IN' group) with an empty 'Please Select' option prepended, commonly used in system configuration fields or admin grids where administrators need to select a customer group.

Public Methods

  • toOptionArray()