<p>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.</p>

CC BY-SA 4.0
2022-07-27T16:36:52.060Z
2022-07-28T07:14:37.720Z
2022-07-28T07:14:37.720Z
Ben Croker
<p>How to use twig function extensions inside another module or plugin?</p>
<p>Say I created <code>filterCats()</code> twig function and it is already available in <code>twig</code>
Is it possible to use it inside a module or plugin? How?
Thank you.</p>

<plugins><modules><twigextension>
How to use twig function inside another module or plugin?
# How to use twig function inside another module or plugin?

(Asked by: username_0 on 2022-07-27)

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.

**Tags:** plugins, modules, twigextension


---

## 1 answers

### Answer by username_1 on 2022-07-27. Score: 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.


---

