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
over 1 year ago 9:13pm 18 April 2023