Drupal 11 adds a "Machine name" column in field_ui.

Created on 6 September 2024, 8 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 for Field UI tables.

When I apply this patch for core (or use the latest version), while ds is active for that display, the table heading is missing the "Machine name" label, and header cells are misaligned with the row cells.

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

(See also 📌 Add "Machine name" column in field_ui to align with latest core Active for field_group.)

Steps to reproduce

Use current Drupal from before the change.
Install ds.
Create some content displays that use ds.
Upgrade to latest 11.x (possibly soon in a stable?), or patch it with 3306820.
Check "Manage display".
(Also play with "Show row weights" and "Hide row weights".)

Expected:
- Header cells are aligned with the columns / row cells.
- Header cell "Machine name" exists.

Actual:
- Header cells are not aligned with the columns / row cells.
- Header cell "Machine name" is missing.

Proposed resolution

Conditionally add the "Machine name" header cell.
OR
Instead of fully replacing the `$table['#header']`, only replace the items that need replacing.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

5.0

Component

Field UI

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