I have created a custom promotion in magento2. To get that working I needed to do some customization in cart which I am trying to do with
I needed the rulename and discount values to be modified before applying in cart.
Now In Magento1 we used to update values as below:
$result = $observer['result'];
How we can achieve the same in Magento2?
Any thoughts/suggestions are welcome.