From 5032f0091067414cac79990a3f038aa27c2eaddf Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Mon, 29 Jan 2024 22:54:48 -0800 Subject: [PATCH] Updated variable in string for php 8.2 deprecation. --- modules/quant_search/src/Controller/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quant_search/src/Controller/Search.php b/modules/quant_search/src/Controller/Search.php index dad27b26..0397ffe8 100644 --- a/modules/quant_search/src/Controller/Search.php +++ b/modules/quant_search/src/Controller/Search.php @@ -263,7 +263,7 @@ public static function generateSearchRecord($entity, $langcode = NULL) { foreach ($entity->getTranslationLanguages() as $code => $lang) { $language_label = \Drupal::service('string_translation')->translate($language->getName(), [], ['langcode' => $code]); - $record["language_${code}"] = $language_label; + $record["language_{$code}"] = $language_label; } }