Model
Retriever
Magento\Customer\Model\Group\Retriever
What it does
This class retrieves the current customer's group ID from the customer session.
Developers would use this when they need to determine which customer group a logged-in user belongs to, such as for applying group-specific pricing, discounts, or displaying different content based on customer group membership.
Public Methods
- getCustomerGroupId()