Model
CustomerGroupRetriever
Magento\Sales\Model\CustomerGroupRetriever
What it does
This class retrieves the customer group ID from the admin quote session in Magento 2's backend area.
Developers use this when they need to determine which customer group is associated with an admin-created quote or order, such as for applying group-specific pricing or discounts.
If no quote exists in the session, it returns the default 'Not Logged In' group ID.
Public Methods
- getCustomerGroupId()