Loading widget_instance.module +6 −4 Original line number Diff line number Diff line Loading @@ -121,8 +121,10 @@ function widget_instance_options_list_alter(array &$options, array $context) { array_walk($options, static function (array &$option_group): void { asort($option_group); }); if (!empty($options[$no_registry_source])) { // Move the 'Other' option group (for widget types with no registry source) // to the bottom of the select list. $options[(string) new TranslatableMarkup('Other')] = $options[$no_registry_source]; unset($options[$no_registry_source]); } } Loading
widget_instance.module +6 −4 Original line number Diff line number Diff line Loading @@ -121,8 +121,10 @@ function widget_instance_options_list_alter(array &$options, array $context) { array_walk($options, static function (array &$option_group): void { asort($option_group); }); if (!empty($options[$no_registry_source])) { // Move the 'Other' option group (for widget types with no registry source) // to the bottom of the select list. $options[(string) new TranslatableMarkup('Other')] = $options[$no_registry_source]; unset($options[$no_registry_source]); } }