Closed (fixed)
Project:
Decoupled Layout Builder Pitchburgh Packages
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
19 Jul 2023 at 04:49 UTC
Updated:
19 Nov 2023 at 22:54 UTC
Jump to comment: Most recent
In 5) Create a discovery mechanism to associate a block plugin with a React component) we will convert InlineBlock to React.
But there are many other Block plugins in Drupal.
In this scenario, we'll need a fallback plugin to provide the user with a reasonable preview. This will bridge the Decoupled layout builder and Block types that need to be converted.
Create a fallback React block plugin component that can request Drupal for rendered previews. Extend the persistence layer to add another Route for this.
Out of scope but for future consideration:
Comments
Comment #2
griffynh commentedComment #3
larowlanThis is now sent in the API response and rendered by the fallback block
https://git.drupalcode.org/project/decoupled_lb_api/-/blob/1.x/src/Norma...
https://git.drupalcode.org/project/decoupled_lb/-/blob/1.x/packages/deco...