Model
ImageProvider
Magento\Checkout\Model\Cart\ImageProvider
What it does
This class retrieves product images for items in a shopping cart.
Developers use it when they need to display product thumbnails in the mini cart, checkout pages, or any other place where cart item images are required.
It fetches all cart items for a given cart ID and returns their image data including source URL, alt text, width, and height.
Public Methods
- getImages()