Model
ShippingAssignmentPersister
Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentPersister
What it does
This class handles the persistence of shipping assignments to a quote/cart in Magento 2.
Developers use this when they need to save shipping information (address, method, items) to an active quote, such as during checkout or when managing multi-shipping scenarios.
It acts as a wrapper that ensures shipping assignments are only saved for active quotes.
Public Methods
- save()