diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php index e78b033..d90c4d5 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php @@ -176,7 +176,7 @@ public function getOptions($field_type = NULL) { $options = array(); $field_types = $this->fieldTypeManager->getDefinitions(); $formatter_types = $this->getDefinitions(); - uasort($formatter_types, 'drupal_sort_weight'); + uasort($formatter_types, array(\Drupal\Component\Utility\SortArray, 'sortByWeightElement')); foreach ($formatter_types as $name => $formatter) { foreach ($formatter['field_types'] as $formatter_field_type) { // Check that the field type exists.