Imported Layout Builder default content is corrupted

Created on 24 February 2025, about 1 month ago

Problem/Motivation

Here's a screenshot to illustrate the issue:

I identified 2 main issues:
1. The default content API in Drupal Core doesn't gracefully handle the inline_block embedded as a component of LB content. Currently, we use inline_block in frontpage node entity, ex https://git.drupalcode.org/project/commerce_kickstart_demo/-/blob/04524b.... The target_uuid reference is provided given the node was exported using the patch to default_content module from Add a Normalizer and Denormalizer to support Layout Builder RTBC . Given the default_content module is no longer in use as core's Default Content API is used by Recipe API, the imported node is corrupted as it lacks correct references.
2. bootstrap_styles module utilizes media references (image, video) by ID vs UUID. Said references cannot be maintained when importing content with Default Content API as ID is changing when content is imported. Moreover, due to a lack of schema, the dependency is not recognized thus the media can be imported only after the node is imported. This issue has been observed in the pre-recipe version of the commerce_kickstart as well and is not caused by using the core's Default Content API.

🐛 Bug report
Status

Active

Version

4.0

Component

Recipes

Created by

🇳🇴Norway zaporylie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024