mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-28 14:16:50 +01:00
Just leaving it here, for future use (twig hook display)
Maybe configurable in the future
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user