Sidebar
Magento\Checkout\Model\Sidebar
What it does
This deprecated model manages mini-cart (sidebar cart) operations in Magento 2, including adding, removing, and updating items in the shopping cart.
Developers previously used this class to handle AJAX-based cart updates from the sidebar, but Magento now recommends alternative approaches for cart manipulation.
It provides methods to validate quote items, update quantities, and format response data for frontend interactions.
Public Methods
- getResponseData()
- checkQuoteItem()
- removeQuoteItem()
- updateQuoteItem()