cancel
Showing results for 
Search instead for 
Did you mean: 

Weird documentation for deprecated Rule Condition Context objects

Weird documentation for deprecated Rule Condition Context objects

I noticed in Model\Condition\Context.php, the documentation mentions it's a modification point for Magento\Catalog\Model\Layer, rather than for Magento\Rule\Model\Condition. It was also deprecated without an alternative in the commit where the original comment was made.

 

The Catalog\Model\Layer object was also modified in the same commit with the correct documentation.

 

Was the Model\Condition context object meant to be deprecated in the first place? And if so, what is the alternative to using it? I'm trying to make custom conditions for a rule interface and need to extend AbstractCondition, which uses the Model\Condition context object.