Skip to content

Commit

Permalink
Updated variable in string for php 8.2 deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 30, 2024
1 parent f113efe commit 5032f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/quant_search/src/Controller/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 5032f00

Please sign in to comment.