Just leaving it here, for future use (twig hook display)

Maybe configurable in the future
This commit is contained in:
slawkens
2025-09-28 14:14:26 +02:00
parent 4e9999cc0d
commit 228780f0ad

View File

@@ -101,6 +101,8 @@ $twig->addFunction($function);
$function = new TwigFunction('hook', function ($context, $hook, array $params = []) { $function = new TwigFunction('hook', function ($context, $hook, array $params = []) {
global $hooks; global $hooks;
//note($hook);
if(is_string($hook)) { if(is_string($hook)) {
if (defined($hook)) { if (defined($hook)) {
$hook = constant($hook); $hook = constant($hook);