ProductWebsiteLinkRepositoryInterface
Magento\Catalog\Api\ProductWebsiteLinkRepositoryInterface
What it does
This repository interface manages the relationship between products and websites in a multi-website Magento setup.
Developers use it to assign products to specific websites or remove those assignments, which is essential for controlling product visibility across different storefronts.
The interface provides methods to save and delete website-product associations using either the product object or by SKU and website ID.
Public Methods
- save()
- delete()
- deleteById()