Check if paragraph has subform

Created on 19 September 2022, about 2 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given, called in /var/www/html/web/modules/contrib/paragraphs_asymmetric_translation_widgets/src/Plugin/Field/FieldWidget/ParagraphsAsymmetricWidget.php on line 29 in Drupal\Core\Render\Element::children() (line 72 of core/lib/Drupal/Core/Render/Element.php).

Steps to reproduce

Create paragraph that only has pseudo field.

Proposed resolution

Add "isset($element['subform'])" expression in "/src/Plugin/Field/FieldWidget/ParagraphsAsymmetricWidget.php".

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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.

Production build 0.71.5 2024