Log in
Model

LockValidatorComposite

Magento\Catalog\Model\Attribute\LockValidatorComposite

What it does

This class implements a composite validator pattern to check if catalog attributes are locked and cannot be modified.

Developers use this when they need to validate whether an attribute can be edited or deleted by running it through multiple validation rules.

It's particularly useful during attribute save operations to prevent modifications to system or protected attributes.

Public Methods

  • validate()