Model
GroupManagement
Magento\Customer\Model\GroupManagement
What it does
This class manages customer group operations in Magento 2, providing methods to retrieve different types of customer groups such as default groups, logged-in groups, and not-logged-in groups.
Developers use this class when they need to determine which customer group applies to a user, check if a group is read-only, or retrieve all customer groups for display or filtering purposes in their custom modules.
Public Methods
- isReadonly()
- getDefaultGroup()
- getNotLoggedInGroup()
- getLoggedInGroups()
- getAllCustomersGroup()