Model
LockValidator
Magento\ConfigurableProduct\Model\Attribute\LockValidator
What it does
This class validates whether a product attribute can be modified or deleted by checking if it's currently being used in configurable products.
Developers use this validator to prevent breaking configurable products by ensuring attributes that are actively used as variation options (like size or color) cannot be removed or changed in ways that would cause data integrity issues.
Public Methods
- validate()