Log in
Interface

GroupSourceInterface

Magento\Customer\Model\Customer\Source\GroupSourceInterface

What it does

This interface defines a contract for classes that provide customer group options as a data source.

Developers implement this interface when creating custom customer group sources for use in admin forms, dropdowns, or filtering components that need to display available customer groups.

It extends OptionSourceInterface to ensure implementations return data in a standardized array format suitable for UI components.