How to use twig function extensions inside another module or plugin?

Say I created filterCats() twig function and it is already available in twig Is it possible to use it inside a module or plugin? How? Thank you.

1 Answer 1


Yes, that is possible. If the module/plugin implementing the Twig function is correctly installed, that function will automatically be available anywhere Twig is rendered.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.