diff --git a/core/modules/config_translation/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php b/core/modules/config_translation/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php index 1e8e822..9f82da0 100644 --- a/core/modules/config_translation/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php +++ b/core/modules/config_translation/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php @@ -70,11 +70,11 @@ public function render() { // Group by mapper weight and sort by label. ksort($mappers); foreach ($mappers as $weight => $mapper) { - usort($mapper, array($this, function ($a, $b) { + usort($mapper, function ($a, $b) { $a_title = (isset($a['label'])) ? $a['label'] : ''; $b_title = (isset($b['label'])) ? $b['label'] : ''; return strnatcasecmp($a_title, $b_title); - })); + }); $mappers[$weight] = $mapper; }