Callers of LayoutEntityHelperTrait::getEntitySections() do not account for the view mode

Created on 24 October 2018, about 6 years ago
Updated 5 July 2024, 6 months ago

Problem/Motivation

Once ✨ Consider supporting Layout Builder Overrides for other view modes Needs work is addressed, sections will be stored per-view mode.

LayoutEntityHelperTrait::getEntitySections() assumes the view mode is default.

Proposed resolution

Provide additional functionality for displays, and do not assume the default display.

Remaining tasks

Per #3008924-27: Callers of LayoutEntityHelperTrait::getEntitySections() do not account for the view mode β†’ :

Thank you all! Sadly still needs tests and steps to reproduce to be committed. I don't have the time currently, sorry.

Steps to reproduce should follow, per #3008924-13: Callers of LayoutEntityHelperTrait::getEntitySections() do not account for the view mode β†’ :

Could you explain how to reproduce the bug, using only core modules?
Step by step, starting with "Install standard profile"
That is an important step for writing test coverage, which must be done before the fix can be committed.

User interface changes

N/A

API changes

TBD

Data model changes

N/A

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 2 days 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 tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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