mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
New configurable: hooks_debug
To view where hooks are located in .twig files
This commit is contained in:
@@ -101,7 +101,9 @@ $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 (config('hooks_debug')) {
|
||||||
|
note($hook);
|
||||||
|
}
|
||||||
|
|
||||||
if(is_string($hook)) {
|
if(is_string($hook)) {
|
||||||
if (defined($hook)) {
|
if (defined($hook)) {
|
||||||
|
Reference in New Issue
Block a user