Skip to content

Cannot create a custom catalog rule condition in magento 2

Is there a way to make a custom catalog rule condition in magento 2 because adobe’s documentation is not helpful at all. I created an after plugin and successfully added the condition but when I save the rule magento throws an error that the rule cannot be saved because I have an invalid method named collectValidatedAttributes in my class that extends the AbstractCondition class