From cf782b73983f322a73c6108c31e6af6fbf5462e6 Mon Sep 17 00:00:00 2001 From: Stefan Korn Date: Thu, 22 Feb 2024 18:28:51 +0100 Subject: [PATCH] #4132: Provide text_format render element - fix warning --- modules/json_form_widget/src/WidgetRouter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/json_form_widget/src/WidgetRouter.php b/modules/json_form_widget/src/WidgetRouter.php index ac8391d7e7..7f45cf82bf 100644 --- a/modules/json_form_widget/src/WidgetRouter.php +++ b/modules/json_form_widget/src/WidgetRouter.php @@ -307,7 +307,7 @@ public function handleUploadOrLinkElement($spec, array $element) { */ public function handleTextareaElement($spec, array $element) { $element['#type'] = 'textarea'; - if ($spec->text_format) { + if (isset($spec->text_format)) { $element['#type'] = 'text_format'; $element['#format'] = $spec->text_format; $element['#allowed_formats'] = [