Model
CreateEmptyCartForCustomer
Magento\QuoteGraphQl\Model\Cart\CreateEmptyCartForCustomer
What it does
This class creates an empty shopping cart for a logged-in customer in the GraphQL API.
Developers use this when implementing the 'createEmptyCart' GraphQL mutation, which returns a masked quote ID (cart token) that can be used in subsequent cart operations.
It handles the conversion from internal quote IDs to public-facing masked IDs for security.
Public Methods
- execute()