From 5eace856ab3efd3568d3f0d4c0b368291ee4ca69 Mon Sep 17 00:00:00 2001 From: Su <112690947+sushmangupta@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:33:29 +0100 Subject: [PATCH] Update add-custom-twig-function.md (#1231) --- guides/plugins/plugins/storefront/add-custom-twig-function.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/plugins/plugins/storefront/add-custom-twig-function.md b/guides/plugins/plugins/storefront/add-custom-twig-function.md index 195ef27af..89e0e9ad3 100644 --- a/guides/plugins/plugins/storefront/add-custom-twig-function.md +++ b/guides/plugins/plugins/storefront/add-custom-twig-function.md @@ -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