Log in
Interface

AttributeSetUnassignValidatorInterface

Magento\Catalog\Model\Product\Attribute\AttributeSetUnassignValidatorInterface

What it does

This interface defines a contract for validators that check whether an attribute can be safely removed from a product attribute set.

Developers implement this interface to add custom validation logic that prevents removal of attributes when it would cause issues, such as when products are using the attribute or when business rules require it.

Public Methods

  • validate()