From 3131b4944bc783e7104a32ca799d5b16490e66ef Mon Sep 17 00:00:00 2001
From: Richard Papp <richard.papp@boromino.com>
Date: Mon, 30 Sep 2024 11:33:52 +0200
Subject: [PATCH] Fix taxonomy manager tree form element

---
 patches/d10-3.json       |  3 +++
 patches/d10/3474919.diff | 13 +++++++++++++
 patches/d11.json         |  3 +++
 3 files changed, 19 insertions(+)
 create mode 100644 patches/d10/3474919.diff

diff --git a/patches/d10-3.json b/patches/d10-3.json
index 258a254..526c2d8 100644
--- a/patches/d10-3.json
+++ b/patches/d10-3.json
@@ -219,6 +219,9 @@
       "#3128397 View can not be saved": "https://www.drupal.org/files/issues/2020-04-16/config_schema-3128397-3.patch",
       "#3352586 Parameter to disable machine name in terms overview ": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3352586.diff?v=2"
     },
+    "drupal/taxonomy_manager": {
+      "#3474919 Form element taxonomy_manager_tree broken": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3474919.diff"
+    },
     "drupal/token": {
       "#3437013 Referrer tokens": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3437013.diff"
     },
diff --git a/patches/d10/3474919.diff b/patches/d10/3474919.diff
new file mode 100644
index 0000000..e8997e7
--- /dev/null
+++ b/patches/d10/3474919.diff
@@ -0,0 +1,13 @@
+diff --git a/src/Element/TaxonomyManagerTree.php b/src/Element/TaxonomyManagerTree.php
+index e4b94dbd9be7bc615ebeae2438e58ceb6bcede3d..930cb7ea4a4ac2e6d1c385facd4e5c5deb38c0c4 100644
+--- a/src/Element/TaxonomyManagerTree.php
++++ b/src/Element/TaxonomyManagerTree.php
+@@ -11,7 +11,7 @@ use Drupal\taxonomy\Entity\Term;
+ /**
+  * Taxonomy Manager Tree Form Element.
+  *
+- * @FormElementBase("taxonomy_manager_tree")
++ * @FormElement("taxonomy_manager_tree")
+  */
+ class TaxonomyManagerTree extends FormElementBase {
+ 
diff --git a/patches/d11.json b/patches/d11.json
index 715fdda..31dcb58 100644
--- a/patches/d11.json
+++ b/patches/d11.json
@@ -216,6 +216,9 @@
       "#3128397 View can not be saved": "https://www.drupal.org/files/issues/2020-04-16/config_schema-3128397-3.patch",
       "#3352586 Parameter to disable machine name in terms overview ": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3352586.diff?v=2"
     },
+    "drupal/taxonomy_manager": {
+      "#3474919 Form element taxonomy_manager_tree broken": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3474919.diff"
+    },
     "drupal/token": {
       "#3437013 Referrer tokens": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3437013.diff"
     },
-- 
GitLab