Log in
Model

SaveHandler

Magento\Quote\Model\QuoteRepository\SaveHandler

What it does

This class handles the complex process of saving a shopping cart (quote) in Magento 2, including persisting cart items, billing/shipping addresses, and shipping assignments.

Developers would use this class when they need to save quote data through the repository pattern, ensuring all related entities (items, addresses, totals) are properly persisted in the correct order.

It's typically called internally by the QuoteRepository when saving a quote.

Public Methods

  • save()