Log in
Model

AgreementsValidator

Magento\Checkout\Model\AgreementsValidator

What it does

This is a default implementation of the agreements validator used during checkout to validate customer agreement acceptance (like terms and conditions).

Developers would use this class when they need to implement custom validation logic for checkout agreements by creating a preference or plugin.

By default, it always returns true, indicating validation passes without actual checking.

Public Methods

  • isValid()