RemoveProductsFromWishlist
Magento\Wishlist\Model\Wishlist\RemoveProductsFromWishlist
What it does
This class handles the removal of multiple product items from a customer's wishlist.
Developers would use this class when implementing features that allow customers to delete items from their wishlist, such as in GraphQL mutations or custom wishlist management functionality.
It validates each item belongs to the wishlist, performs the deletion, and returns a structured output containing the updated wishlist and any errors encountered during the process.
Public Methods
- execute()