Layout builder does not protect against recursion

Created on 12 June 2018, over 7 years ago
Updated 17 February 2023, over 2 years ago

Problem/Motivation

The Layout builder module does not protect against recursion. If a Block Plugin which renders an entity is placed inside the same entity's layout, you will receive "Maximum function nesting level" errors. This was originally reported in #2976152: Don't allow placing a Custom Block in the layout override for itself or a default layout โ†’ , and is being mitigated in that issue by hiding known Block Plugins that cause this issue.

Proposed resolution

The mitigation is fine for now, but Layout builder should have higher level recursion protection, similar to what the Entity Reference formatter does today.

Remaining tasks

Write a patch and tests.

User interface changes

None.

API changes

None.

Data model changes

None.

๐Ÿ› Bug report
Status

Needs work

Version

10.1 โœจ

Component
Layout builderย  โ†’

Last updated about 2 months ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States samuel.mortenson

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

Merge Requests

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