Log in
Model

CheckOptionLinkIfExist

Magento\Bundle\Model\Product\CheckOptionLinkIfExist

What it does

This class checks whether a product link from a bundle option being deleted is still used in other bundle options.

Developers use this to prevent breaking bundle product configurations by ensuring a product remains available in at least one option before allowing an option deletion.

Public Methods

  • execute()