Log in
Model

CompositeValidator

Magento\Customer\Model\Address\CompositeValidator

What it does

This class implements the Composite design pattern to validate customer addresses by running multiple validators sequentially.

Developers use this to add custom address validation rules through dependency injection without modifying core code.

It aggregates all validation errors from registered validators and returns them as a single array.

Public Methods

  • validate()