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 use implementations of this interface when they need to determine which customer group a user belongs to, which is essential for applying group-specific pricing, discounts, or access rules throughout Magento.

Public Methods

  • getCustomerGroupId()