Unverified Commit f64676ec authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Mateu Aguiló Bosch
Browse files

Issue #3300194 by e0ipso: Remove warning on the widget dropdown

parent 6d8add46
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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]);
  }
}