Log in
Model

SaveHandler

Magento\Catalog\Model\Product\Option\SaveHandler

What it does

This class handles the saving of custom product options when a product is saved in Magento 2.

It manages the deletion of removed options, validates that required options aren't added to simple products that belong to composite products, and ensures all product options are properly persisted to the database.

Developers typically don't interact with this class directly as it's automatically triggered during product save operations through Magento's extension attributes system.

Public Methods

  • execute()