Skip to content
Snippets Groups Projects
Commit 6499b68d authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3477822 by mrshowerman: Sorting of predefined language list doesnt work

parent 3889d130
No related branches found
No related tags found
No related merge requests found
Pipeline #297319 passed with warnings
......@@ -184,7 +184,8 @@ class CustomLanguageManager {
$standard_languages = \Drupal::languageManager()
->getStandardLanguageList();
foreach ($standard_languages as $langcode => $language_names) {
$subsettable_languages[$langcode] = t($language_names[0]);
// Cast to string for proper sorting in all languages.
$subsettable_languages[$langcode] = (string) t($language_names[0]);
}
asort($subsettable_languages);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment