Model
Retriever
Magento\Customer\Model\Group\Retriever
What it does
This class retrieves the current customer's group ID from the active session.
Developers use it when they need to access the customer group ID for pricing calculations, catalog rules, or other group-specific functionality without directly accessing the session object.
It provides a clean, injectable way to get the customer group ID through dependency injection.
Public Methods
- getCustomerGroupId()