Unverified Commit baa711c9 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3107130 by PCate, kishor_kolekar, ravi.shankar, Vidushi Mehta,...

Issue #3107130 by PCate, kishor_kolekar, ravi.shankar, Vidushi Mehta, rajneeshb, Kristen Pol, thalles, quietone, alexpott: Responsive image field formatter list should be sorted by label, not machine name
parent f5d9fec8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -127,6 +127,7 @@ public static function defaultSettings() {
  public function settingsForm(array $form, FormStateInterface $form_state) {
    $responsive_image_options = [];
    $responsive_image_styles = $this->responsiveImageStyleStorage->loadMultiple();
    uasort($responsive_image_styles, '\Drupal\responsive_image\Entity\ResponsiveImageStyle::sort');
    if ($responsive_image_styles && !empty($responsive_image_styles)) {
      foreach ($responsive_image_styles as $machine_name => $responsive_image_style) {
        if ($responsive_image_style->hasImageStyleMappings()) {