QuoteValidationRuleInterface
Magento\Quote\Model\ValidationRules\QuoteValidationRuleInterface
What it does
This interface defines a contract for implementing validation rules on Magento 2 shopping cart quotes.
Developers would implement this interface to create custom validation rules that check quote conditions (like minimum order amount, product availability, or shipping restrictions) before checkout.
Each implementation returns an array of ValidationResult objects indicating whether the quote passes the specific validation rule.
Public Methods
- validate()