Log in
Model

Combine

Magento\Rule\Model\Condition\Combine

What it does

This class manages combinations of multiple rule conditions in Magento 2's rule system, allowing conditions to be grouped with 'ALL' or 'ANY' logic operators.

Developers use this when creating promotional rules, cart price rules, or catalog price rules that need to evaluate multiple conditions together.

It handles validation, HTML rendering of condition groups, and serialization/deserialization of complex rule structures.

Public Methods

  • loadAggregatorOptions()
  • getAggregatorSelectOptions()
  • getAggregatorName()
  • getAggregatorElement()
  • loadValueOptions()
  • addCondition()
  • getValueElementType()
  • asArray()
  • asXml()
  • loadArray()
  • loadXml()
  • asHtml()
  • getNewChildElement()
  • asHtmlRecursive()
  • asString()
  • asStringRecursive()
  • validate()
  • validateByEntityId()
  • setJsFormObject()
  • getConditions()
  • setConditions()