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 2 setup.

Developers use this when they need to assign or retrieve website associations for products, enabling products to be available on specific websites within a Magento installation.

It's commonly used in product import/export operations and website assignment management.

Public Methods

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