Interface
UniqueValidationInterface
Magento\Eav\Model\Entity\Attribute\UniqueValidationInterface
What it does
This interface defines a contract for validating whether an EAV attribute value is unique across entities.
Developers implement this interface when they need to ensure attribute values like email addresses or SKUs are not duplicated in the database.
It's used during entity save operations to prevent duplicate values for attributes marked as unique.
Public Methods
- validate()