Active
Project:
Drupal core
Version:
main
Component:
layout_builder.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2020 at 16:51 UTC
Updated:
18 Jul 2020 at 14:33 UTC
Jump to comment: Most recent
When using something like default_content, the referenced entities for a node should include its inline blocks and other layout builder added content. This isn't the case. Because ContentEntityBase checks instanceof EntityReference. And layout builder added content is connected via a LayoutSectionItem.
Ideally we'd provide the referenced content in a seamless mechanism.
Comments
Comment #2
heddnComment #3
geek-merlinJust a thought:
Roll a computed field which then will be a property with EntityReference type and done.(If later that computed field optionally does a de-normalizing save to DB, we get views integration for free)EDIT: I guess: Provide an EntityReference typed property on the LB field, implement EntityReferenceFieldItemListInterface, and done.
No, not so easy...
Comment #4
geek-merlinAs of #2942975-122: [PP-1] Expose Layout Builder data to REST and JSON:API, this is crucial for exposing LB data via Rest/JsonAPi, so raising prio like the other issue.
Comment #5
berdirIt woul likely be be far easier to solve that there with layout builder specific code than making this extensible.