Log in
Interface

LockValidatorInterface

Magento\Catalog\Model\Attribute\LockValidatorInterface

What it does

This interface defines a contract for validators that check if a catalog attribute is locked and can be modified.

Developers implement this interface to create custom validation logic that prevents modification of attributes in certain states, such as when they're being used in attribute sets or have other dependencies.

It's used primarily during attribute save operations to ensure data integrity.

Public Methods

  • validate()