Model
ProductWebsiteLinkRepository
Magento\Catalog\Model\ProductWebsiteLinkRepository
What it does
This repository manages the assignment of products to websites in a multi-website Magento 2 setup.
Developers use this class to programmatically assign products to specific websites, remove products from websites, or manage which websites a product appears on through save, delete, and deleteById methods.
Public Methods
- save()
- delete()
- deleteById()