Add "Machine name" column in field_ui to align with latest core

Created on 3 September 2024, 7 months ago

Problem/Motivation

In ✨ Show machine name in "Manage form display" and "Manage display" table row Fixed , Drupal core is adding a "Machine name" column.

When I apply this patch for core (or use the latest version), while field_group is enabled, the table looks broken, because in the field group table rows, content ends up in the wrong table cell.

We should support this additional column with field_group, possibly as a conditional feature, to support different versions of core.

Steps to reproduce

Use current Drupal from before the change.
Install field group.
Create some content displays that use field groups.
Upgrade to latest 11.x (possibly soon 10.4.x?), or patch it with 3306820.
Check "Manage display".
Play with "Show row weights" and "Hide row weights".

Expected:
- Table cells in field group rows are aligned with the cells for field rows.
- The machine names do show up.
- The "Show row weights" and "Hide row weights" works correctly.

Actual:
- Table cells are misaligned.
- The machine names are hidden if "Hide row weights" is used. They show up if "Show row weights" is used.

(not sure if it will always be like this but at least it won't work correctly I think)

Proposed resolution

Conditionally add the additional column / cell in the rows added by field_group.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇩🇪Germany donquixote

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024