Problem/Motivation
On the Single config export form at /admin/config/development/configuration/single/export
, when looking at the Block list of Configuration options, it's sorted alphabetically by label, with the machine name in parenthesis after. For example: Help (claro_help)
Normally when you're exporting config, you know what the machine name is, but not necessarily the label. This makes it extremely difficult to find the config you need, when the list is hundreds or thousands of options long.
However, if you simply switch the order to be machine name, then label, eg. claro_help (Help) then it's easy to find the config you want.
I added a patch to core/modules/config/src/Form/ConfigSingleExportForm.php
that swaps the order in the dropdown.
Steps to reproduce
- Log in and go to
/admin/config/development/configuration/single/export
- Under Configuration type select Block.
- Open the Configuration name dropdown
- See the order is based on label, not machine name.
Proposed resolution
Switch the order so the machine name comes first in the label. Then it will be sorted alphabetically before display.
Remaining tasks
None.
User interface changes
Changes the order of the options in the Configuration name dropdown.
API changes
None.
Data model changes
None.
Release notes snippet
None.