Skip to content

Commit

Permalink
Update add-custom-twig-function.md (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmangupta authored Dec 13, 2023
1 parent f356598 commit 5eace85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ nav:

Let us consider, for instance, you want to call a PHP script from the twig template during the theme development to create a `MD5-hash`. In such a case, you can create your own twig functions. For this example, pass a string to the `TwigFunction` and return a `MD5-Hash`.

::: infoIt is not recommended to use twig functions in order to retrieve data from the database. In such a case, DataResolver could come in handy.:::
::: info
It is not recommended to use twig functions in order to retrieve data from the database. In such a case, DataResolver could come in handy.
:::

## Prerequisites

Expand Down

0 comments on commit 5eace85

Please sign in to comment.