SaveHandler
Magento\Catalog\Model\Product\Website\SaveHandler
What it does
This class handles the persistence of product-to-website associations in Magento 2.
Developers use this class as an extension handler that automatically saves which websites a product is assigned to whenever a product is saved.
In single-store mode, it automatically assigns the product to the default website; in multi-store mode, it reads website IDs from the product's extension attributes.
Public Methods
- execute()