Log in
Interface

RetrieverInterface

Magento\Customer\Model\Group\RetrieverInterface

What it does

This interface defines a contract for retrieving the current customer's group ID from the session.

Developers would implement this interface when they need to create custom services that fetch customer group information, which is commonly used for pricing rules, catalog permissions, and tax calculations based on customer segments.

Public Methods

  • getCustomerGroupId()