From 09beb4b5ee183d73cddb22745b8b80f7a6c71701 Mon Sep 17 00:00:00 2001 From: Altamash Shaikh Date: Fri, 13 Dec 2024 18:01:45 +0530 Subject: [PATCH] Moves FormElement variable under forms categpry, #PG-4057 --- .../Variable/PreConfigured/FormElement.php | 2 +- ...Manager.getAvailableContainerVariables.xml | 20 +++++++++---------- ...Manager.getAvailableContainerVariables.xml | 20 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Template/Variable/PreConfigured/FormElement.php b/Template/Variable/PreConfigured/FormElement.php index 787ba9598..5cb79d7e2 100644 --- a/Template/Variable/PreConfigured/FormElement.php +++ b/Template/Variable/PreConfigured/FormElement.php @@ -13,7 +13,7 @@ class FormElement extends BaseDataLayerVariable { public function getCategory() { - return self::CATEGORY_CLICKS; + return self::CATEGORY_FORMS; } protected function getDataLayerVariableName() diff --git a/tests/System/expected/test_no_content__TagManager.getAvailableContainerVariables.xml b/tests/System/expected/test_no_content__TagManager.getAvailableContainerVariables.xml index 6c6dc95a6..862516c00 100644 --- a/tests/System/expected/test_no_content__TagManager.getAvailableContainerVariables.xml +++ b/tests/System/expected/test_no_content__TagManager.getAvailableContainerVariables.xml @@ -73,16 +73,6 @@ 9999 1 - - FormElement - - FormElement - Form Element - Clicks - An instance of the element that was submitted. - 9999 - 1 - @@ -328,6 +318,16 @@ 9999 1 + + FormElement + + FormElement + Form Element + Forms + An instance of the element that was submitted. + 9999 + 1 + FormId diff --git a/tests/System/expected/test_with_content__TagManager.getAvailableContainerVariables.xml b/tests/System/expected/test_with_content__TagManager.getAvailableContainerVariables.xml index 38b4f9714..db62e304e 100644 --- a/tests/System/expected/test_with_content__TagManager.getAvailableContainerVariables.xml +++ b/tests/System/expected/test_with_content__TagManager.getAvailableContainerVariables.xml @@ -73,16 +73,6 @@ 9999 1 - - FormElement - - FormElement - Form Element - Clicks - An instance of the element that was submitted. - 9999 - 1 - @@ -363,6 +353,16 @@ 9999 1 + + FormElement + + FormElement + Form Element + Forms + An instance of the element that was submitted. + 9999 + 1 + FormId