AbstractAction
Magento\Rule\Model\Action\AbstractAction
What it does
This abstract class serves as the base for all rule actions in Magento 2's rule engine system.
Developers extend this class when creating custom actions for promotional rules, catalog price rules, or any business logic that requires configurable actions with attributes, operators, and values.
It provides the framework for rendering action forms, converting actions to/from arrays or XML, and processing the actual action execution.
Public Methods
- getForm()
- asArray()
- asXml()
- loadArray()
- loadAttributeOptions()
- getAttributeSelectOptions()
- getAttributeName()
- loadOperatorOptions()
- getOperatorSelectOptions()
- getOperatorName()
- loadValueOptions()
- getValueSelectOptions()
- getValueName()
- getNewChildSelectOptions()
- getNewChildName()
- asHtml()
- asHtmlRecursive()
- getTypeElement()
- getAttributeElement()
- getOperatorElement()
- getValueElement()
- getAddLinkHtml()
- getRemoveLinkHtml()
- asString()
- asStringRecursive()
- process()