Are there plans for Paragraphs to directly support to Layour Builder API, so that they can be discovered by Layout Builder directly.

i.e. without the need of an intermediary, e.g.:

  • paragraph_blocks module which works as an adapter/wrapper for a paragraph so that it can be discovered by Layout Builder and listed
  • or custom blocks with a field using an entity reference to reference the paragraph

Paragraph_blocks is not "officially" supported in Drupal 9 though there is a patch just out to enable support - https://www.drupal.org/project/paragraph_blocks/issues/3154994 But not having official support is a motivation for Paragraphs supporting the Layout Builder API directly. Though this patch might lessen that motivation.

The other thing might be to have less code: rather than have an adapter/wrapper between Paragraphs and Layour Builder, instead get Paragraphs to support Layout Builder.

The other way around: I've already asked on the issue list for Layout Builder to support Paragraphs and they have suggested instead the approach to use paragraphs_block with the recent patch I mentioned to enable it to work in Drupal 9: https://www.drupal.org/project/drupal/issues/3154995

So welcome your thoughts on:

  • if Paragraphs will be extended to support Layout Builder directly
  • or continue with use of an intermediary e.g. paragraphs_block or a Paragraph referenced as an entity reference in a field in a custom block

I also looked for mention of Layout Builder in the Paragraphs issue list/queue to see if anyone else had already discussed what I'm discussing here:
https://www.drupal.org/project/issues/paragraphs?text=layout+builder&sta...

In that search, potentially related issues I found are here:

Those these ^ are talking about other things mainly as well it would seem.

Thank you!

Comments

therobyouknow created an issue. See original summary.

Berdir’s picture

As far as I know, layout builder requires everything to be blocks and it can't officially support paragraphs from their side, as it's in core and paragraphs is not.

So, I don't think there is a more direct approach than paragraphs_blocks, the best we could do is provide such a block integration directly in this module?

therobyouknow’s picture

Thank you @Berdir agree.

So, I don't think there is a more direct approach than paragraphs_blocks, the best we could do is provide such a block integration directly in this module?

I think the https://www.drupal.org/project/paragraph_blocks is the closest idea to integration. And I'd even say that paragraphs_block should be merged with Paragraphs as a sub-module. This would complete the concept of integration.

But for now, paragraphs_block as an additional module seems to work well.

Thank you again.

therobyouknow’s picture

Status: Active » Closed (works as designed)

Thank you Berdir - closing on the basis of your advice.