Log in
Interface

ProductWebsiteLinkInterface

Magento\Catalog\Api\Data\ProductWebsiteLinkInterface

What it does

This interface defines the contract for linking products to websites in a multi-website Magento setup.

Developers use this when managing product-website associations through the API, enabling them to assign or retrieve which websites a specific product (identified by SKU) is associated with.

It's essential for programmatically controlling product visibility across different store websites.

Public Methods

  • getSku()
  • setSku()
  • getWebsiteId()
  • setWebsiteId()