Config keys order changed after install

Created on 11 October 2024, 3 months ago

Problem/Motivation

In https://www.drupal.org/project/sobki_profile_bootstrap we use Layout Builder Browser, for example https://git.drupalcode.org/project/sobki_profile_bootstrap/-/blob/10.0.x...

Currently config is exported as:

...
label: Quote
weight: 1
image_path: 'theme://sobki_theme_bootstrap/assets/images/optimized/bc_quote.svg'
image_alt: ''

When I save the form on admin/config/content/layout-builder-browser, it became like:

...
label: Quote
image_path: 'theme://sobki_theme_bootstrap/assets/images/optimized/bc_quote.svg'
image_alt: ''
weight: 1

Which is correct, as it respects the order declared in https://git.drupalcode.org/project/layout_builder_browser/-/blob/8.x-1.x...

My problem is why when I install a website from the profile, the order is:

...
label
weight
image_path
image_alt

Which is why it is currently versioned like this, Instead of:

...
label
image_path
image_alt
weight

So during development it provokes a lot of unnecessary changes.

Steps to reproduce

Proposed resolution

Remaining tasks

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024