Log in
Model

ValidatorResultMerger

Magento\Sales\Model\ValidatorResultMerger

What it does

This class merges multiple validator results into a single unified result object in Magento 2's Sales module.

Developers use this when combining validation outcomes from different validators, allowing them to collect all validation messages from multiple sources into one result.

This is particularly useful during order processing, invoice creation, or shipment workflows where multiple validation checks need to be performed and their results consolidated.

Public Methods

  • merge()