Model
ProductWebsiteLink
Magento\Catalog\Model\ProductWebsiteLink
What it does
This class represents a data transfer object (DTO) that links a product to a website in Magento 2's multi-website architecture.
Developers use this class when they need to assign products to specific websites or retrieve product-website associations, particularly when working with the Catalog API to manage product visibility across different storefronts.
Public Methods
- getSku()
- getWebsiteId()
- setSku()
- setWebsiteId()