Replace hook_form_node_form_alter() implementations with configured field layouts

Created on 20 January 2017, over 8 years ago
Updated 16 May 2025, 3 days ago

Problem/Motivation

Currently \Drupal\node\NodeForm::form() and seven_form_node_form_alter() work to split the node form into two columns.
This code runs after the entity display.

If using the experimental Field Layout module to change node forms to have two columns, this will incidentally create 3 columns.

Additionally, form_alter implementations that relocate fields will have conflicts

Proposed resolution

Configure node.module to use a layout for node displays

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Postponed

Version

11.0 πŸ”₯

Component

field_layout.module

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024