Log in
Model

CustomerCartResolver

Magento\Quote\Model\Cart\CustomerCartResolver

What it does

This class retrieves or creates a shopping cart for a logged-in customer and ensures it has a masked ID for secure public access.

Developers use this when they need to get a customer's active cart in GraphQL or REST API operations, where the cart needs both an internal ID and a public-facing masked ID for security purposes.

Public Methods

  • resolve()