private function setConditionUrlParams(\Magento\Rule\Model\Condition\AbstractCondition $conditions, $urlParams)
    {
        $conditions->setUrlParams($urlParams);

        if ($conditions->getConditions() && is_array($conditions->getConditions())) {
            foreach ($conditions->getConditions() as $condition) {
                $this->setConditionUrlParams($condition, $urlParams);
            }
        }
    }
private function setConditionUrlParams(\Magento\Rule\Model\Condition\AbstractCondition $conditions, $urlParams)
    {
        $conditions->setUrlParams($urlParams);

        if ($conditions->getConditions() && is_array($conditions->getConditions())) {
            foreach ($conditions->getConditions() as $condition) {
                $this->setConditionUrlParams($condition, $urlParams);
            }
        }
    }
private function setConditionUrlParams ( \ Magento \ Rule \ Model \ Condition \ AbstractCondition $ conditions , $ urlParams ) { $ conditions -> setUrlParams ( $ urlParams ) ; if ( $ conditions -> getConditions ( ) && is_array ( $ conditions -> getConditions ( ) ) ) { foreach ( $ conditions -> getConditions ( ) as $ condition ) { $ this -> setConditionUrlParams ( $ condition , $ urlParams ) ; } } }
Set proper url params to rule conditions.

@param \Magento\Rule\Model\Condition\AbstractCondition $conditions Rule conditions.
@param array                                           $urlParams  URL Params.

@return void
Set proper url params to rule conditions .