Skip to content

Commit

Permalink
#4132: Provide text_format render element - fix code climate
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn authored and dafeder committed Dec 23, 2024
1 parent ab09123 commit 3256a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/json_form_widget/src/ValueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handleStringValues($formValues, $property) {
if (isset($formValues[$property]['select'])) {
return $formValues[$property][0] ?? NULL;
}
// Handle text_format
// Handle text_format.
if (isset($formValues[$property]['value'])) {
return $formValues[$property]['value'];
}
Expand Down
2 changes: 1 addition & 1 deletion modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function handleTextareaElement(mixed $spec, array $element) {
$element['#type'] = 'text_format';
$element['#format'] = $spec->text_format;
$element['#allowed_formats'] = [
$spec->text_format
$spec->text_format,
];
}
if (isset($spec->rows)) {
Expand Down

0 comments on commit 3256a1b

Please sign in to comment.