Log in
Interface

ConditionInterface

Magento\Rule\Model\Condition\ConditionInterface

What it does

This interface defines the contract for rule conditions that need to interact with database queries in Magento 2.

Developers implement this interface when creating custom rule conditions that require SQL operations, such as joining tables, mapping fields, or binding values for catalog price rules, shopping cart rules, or other rule-based features.

Public Methods

  • getTablesToJoin()
  • getMappedSqlField()
  • getBindArgumentValue()