From 228780f0ad8b6c5e16a93f3e946a74a6e9ad4cf8 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 28 Sep 2025 14:14:26 +0200 Subject: [PATCH] Just leaving it here, for future use (twig hook display) Maybe configurable in the future --- system/twig.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/twig.php b/system/twig.php index 10f77cf3..ecc7a957 100644 --- a/system/twig.php +++ b/system/twig.php @@ -101,6 +101,8 @@ $twig->addFunction($function); $function = new TwigFunction('hook', function ($context, $hook, array $params = []) { global $hooks; + //note($hook); + if(is_string($hook)) { if (defined($hook)) { $hook = constant($hook);