Interface
GroupManagementInterface
Magento\Customer\Api\GroupManagementInterface
What it does
This interface defines methods for managing and retrieving customer groups in Magento 2.
Developers use it to access default groups, check if a group can be deleted, get logged-in/not-logged-in groups, and retrieve the special 'all customers' group.
It's commonly used in pricing rules, promotions, and access control features that need to differentiate customer types.
Public Methods
- isReadonly()
- getDefaultGroup()
- getNotLoggedInGroup()
- getLoggedInGroups()
- getAllCustomersGroup()