Log in
Model

QuoteIdMask

Magento\Quote\Model\QuoteIdMask

What it does

This class manages masked IDs for shopping cart quotes in Magento 2, primarily used for guest checkout scenarios.

It generates and stores random hash values that represent quote IDs, allowing guest customers to retrieve their carts without requiring authentication.

Developers use this when implementing guest checkout functionality or when they need to reference a quote without exposing the actual quote ID.

Public Methods

  • beforeSave()