From dd3372095711b087072bc58e0ace441d5f3892d6 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Fri, 10 Dec 2021 12:06:47 +0000 Subject: [PATCH] [TWIG] Add 'dd' and 'die' functions to twig --- src/Twig/Extension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Twig/Extension.php b/src/Twig/Extension.php index 5aaff61bcd..e7fd2cc904 100644 --- a/src/Twig/Extension.php +++ b/src/Twig/Extension.php @@ -72,9 +72,10 @@ class Extension extends AbstractExtension new TwigFunction('is_firefox', [Runtime::class, 'isFirefox']), new TwigFunction('handle_override_template_import', [Runtime::class, 'handleOverrideTemplateImport']), new TwigFunction('handle_override_stylesheet', [Runtime::class, 'handleOverrideStylesheet']), - new TwigFunction('open_details', [Runtime::class, 'openDetails']), new TwigFunction('get_feeds', [Runtime::class, 'getFeeds']), + new TwigFunction('die', 'die'), + new TwigFunction('dd', 'dd'), ]; } }