From 05e8fe5d1e1513e5e0d373fcd4aa0bdc796953ba Mon Sep 17 00:00:00 2001 From: Klaus Purer <klaus.purer@protonmail.ch> Date: Wed, 12 Mar 2025 14:51:59 +0100 Subject: [PATCH] fix(uninstall): Fix language negotiation ID in uninstall function (#3476689) --- graphql.install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphql.install b/graphql.install index 96b959f7..662f3c75 100644 --- a/graphql.install +++ b/graphql.install @@ -6,6 +6,7 @@ */ use Drupal\graphql\Entity\Server; +use Drupal\graphql\Plugin\LanguageNegotiation\OperationLanguageNegotiation; use GraphQL\Error\DebugFlag; /** @@ -38,7 +39,7 @@ function graphql_uninstall(): void { $languageTypes = $configFactory->getEditable('language.types'); if ($negotiation = $languageTypes->get('negotiation')) { foreach (array_keys($negotiation) as $type) { - unset($negotiation[$type]['enabled']['language-graphql']); + unset($negotiation[$type]['enabled'][OperationLanguageNegotiation::METHOD_ID]); } $languageTypes->set('negotiation', $negotiation)->save(); } -- GitLab