Log in
Model

Validator

Magento\Bundle\Model\Option\Validator

What it does

This validator class ensures that bundle product options have all required fields (title and type) properly filled before saving.

Developers use this during bundle product creation or modification to validate option data and prevent incomplete options from being stored in the database.

It extends Magento's AbstractValidator and provides validation error messages for missing required fields.

Public Methods

  • isValid()