Move Field Layout data model and API directly into \Drupal\Core\Entity\EntityDisplayBase

Created on 17 January 2017, almost 8 years ago
Updated 12 August 2024, 4 months ago

Problem/Motivation

#2796173: Add experimental Field Layout module to allow entity view/form modes to switch between layouts β†’ adds an experimental module that extends and alters the EntityDisplay entity classes and forms.

It provides no additional paradigms or functionality other than enhancing the existing UI.

Proposed resolution

Once the module is approaching a stable release, merge it directly into those core classes instead of having an optional module, even one in the Standard profile.

Remaining tasks

N/A

User interface changes

N/A

API changes

Added EntityDisplayInterface::getDefaultRegion()
Added EntityViewDisplayInterface::getFieldFromBuild()
Added EntityViewDisplayInterface::setFieldOnBuild()

Data model changes

entity_view_display and enitty_form_display both get a layout_id (string) and layout_settings (array)

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 4 hours ago

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.

  • Needs framework manager review

    It is used to alert the framework manager core committer(s) that an issue significantly impacts (or has the potential to impact) multiple subsystems or represents a significant change or addition in architecture or public APIs, and their signoff is needed (see the governance policy draft for more information). If an issue significantly impacts only one subsystem, use Needs subsystem maintainer review instead, and make sure the issue component is set to the correct subsystem.

  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

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