Log in
Model

GetCartForUser

Magento\QuoteGraphQl\Model\Cart\GetCartForUser

What it does

This class retrieves and validates a shopping cart for GraphQL API requests.

Developers use it to securely fetch a customer's cart by converting the masked cart ID to an actual cart ID, verifying the cart is active, ensuring the requesting user has permission to access it, and updating the cart currency based on the store context.

Public Methods

  • execute()