I have a question: Is it possible to pass additional parameters from the twig template to a filter? I am in the process of writing a new filter, and I need to be able to pass along parameters from the twig template for the filter. I haven't really seen how to do that. I am fine if that is passed along through the asset to the filter.
(The minispade filter I am in the process of writing. I want to pass something like the the "foo" and "bar". Ideally "foo" => "bar". Is that at all possible?
Hi,
I have a question: Is it possible to pass additional parameters from the twig template to a filter? I am in the process of writing a new filter, and I need to be able to pass along parameters from the twig template for the filter. I haven't really seen how to do that. I am fine if that is passed along through the asset to the filter.
Example:
(The minispade filter I am in the process of writing. I want to pass something like the the "foo" and "bar". Ideally "foo" => "bar". Is that at all possible?