Layout Paragraphs 2.x compatibility

Created on 25 August 2021, almost 3 years ago
Updated 18 April 2023, about 1 year ago

Hi, is this module layout_paragraphs 2.x compatible? I guess that should be pointed out on the module page as 2.x will be released sooner or later.

Perhaps it would make sense to create a compatible 2.x release if changes to this module are required and keep 1.x for layout_paragraphs 1.x?

πŸ’¬ Support request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I've tried the patch as well and I also get a couple of errors. I'm not sure if they are all related to this same issue. I'm using "layout_paragraphs" 2.0.2 and "layout_paragraphs_restriction" 1.0.0-alpha3 on Drupal core 9.5.0.

    Warning: Undefined property: Drupal\layout_paragraphs_restriction\Plugin\Field\FieldWidget\LayoutParagraphsRestrictionWidget::$fieldName in /layout_paragraphs_restriction/src/Plugin/Field/FieldWidget/LayoutParagraphsRestrictionWidget.php on line 67
    
    Warning: Trying to access array offset on value of type null in /layout_paragraphs_restriction/src/Plugin/Field/FieldWidget/LayoutParagraphsRestrictionWidget.php on line 68
    
    Warning: Undefined array key "#attached" in /layout_paragraphs_restriction/src/Plugin/Field/FieldWidget/LayoutParagraphsRestrictionWidget.php on line 82
    
    Warning: Trying to access array offset on value of type null in /layout_paragraphs_restriction/src/Plugin/Field/FieldWidget/LayoutParagraphsRestrictionWidget.php on line 82
    The website encountered an unexpected error. Please try again later.
    
    TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in array_search() (line 82 of modules/contrib/layout_paragraphs_restriction/src/Plugin/Field/FieldWidget/LayoutParagraphsRestrictionWidget.php).
  • πŸ‡©πŸ‡ͺGermany larskleiner

    The patch from #5 fixes the Call to a member function getBundleInfo() on null error we got when enabling an uninstalling the module with Layout Paragraphs 2.x enabled.

    However, it doesn't make the module compatible with Layout Paragraphs 2.x. We are looking into Layout Paragraphs Limit for this, see https://www.drupal.org/project/layout_paragraphs/issues/3166362 🌱 Add setting to limit what paragraph types can be in section layouts. Active

  • Status changed to Needs work about 1 year ago
Production build 0.69.0 2024