From 443b456a0d7c55a6cbc9070381656474cf365cb1 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Thu, 17 Aug 2023 08:50:41 +0200 Subject: [PATCH] add new method for debug-check --- Modules/Core/ViewConfig.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Core/ViewConfig.php b/Modules/Core/ViewConfig.php index 6d9fc0c..5df7d64 100644 --- a/Modules/Core/ViewConfig.php +++ b/Modules/Core/ViewConfig.php @@ -195,6 +195,11 @@ class ViewConfig extends ViewConfig_parent return json_encode([$dataLayer], JSON_PRETTY_PRINT); } + public function isDebugModeOn() :bool + { + return Registry::getConfig()->getConfigParam('d3_gtm_blEnableDebug'); + } + public function isPromotionList($listId) { $oConfig = Registry::getConfig();