Log in
Interface

AttributeSetUnassignValidatorInterface

Magento\Catalog\Model\Product\Attribute\AttributeSetUnassignValidatorInterface

What it does

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

Developers would implement this interface to add custom validation logic that checks if removing an attribute would cause issues, such as breaking product configurations or violating business rules.

The validate method throws a LocalizedException if the attribute cannot be removed from the specified attribute set.

Public Methods

  • validate()