Log in
Model

ValidationResults

Magento\Customer\Model\Data\ValidationResults

What it does

This class represents validation results for customer data operations in Magento 2.

Developers use it to check if customer data (like registration or profile updates) passed validation and to retrieve any validation error messages that occurred.

It's typically returned by validation methods to communicate success/failure status and associated error details.

Public Methods

  • isValid()
  • getMessages()
  • setIsValid()
  • setMessages()