Log in
Model

Resolver

Magento\Customer\Model\Group\Resolver

What it does

This class provides a lightweight service to retrieve a customer's group ID based on their customer ID.

Developers use this when they need to determine which customer group a specific customer belongs to, which is essential for applying group-specific pricing, discounts, or catalog rules without loading the entire customer object.

Public Methods

  • resolve()