Log in
Model

CustomerGroupConfig

Magento\Customer\Model\CustomerGroupConfig

What it does

This class manages system configuration operations for customer groups in Magento 2.

It allows developers to programmatically set the default customer group for new customer registrations by updating the system configuration.

You would use this when you need to change the default customer group assignment through code rather than the admin panel.

Public Methods

  • setDefaultCustomerGroup()