Closed jcubic closed 7 years ago
I want to implement set helper that will add new element to existing context (or update context) if used normally and push new element on context stack if used as block. How can I distinguish those two cases in helper code?
@jcubic I think you can use the 4th parameter passed to the helper to determine if it's used as block or not.
Thanks, that works.
I want to implement set helper that will add new element to existing context (or update context) if used normally and push new element on context stack if used as block. How can I distinguish those two cases in helper code?