From 9ab225151ec364016f11d6b3be5a9ae98c36b99f Mon Sep 17 00:00:00 2001 From: Florent Torregrosa <14238-florenttorregrosa@users.noreply.drupalcode.org> Date: Wed, 31 Jan 2024 15:16:22 +0100 Subject: [PATCH] Issue #3408816 by Grimreaper, Sharique: When editing a paragraph type, all checkboxes are checked --- src/Plugin/paragraphs/Behavior/UIStyleOptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/paragraphs/Behavior/UIStyleOptions.php b/src/Plugin/paragraphs/Behavior/UIStyleOptions.php index 7e254a5..ee0e8df 100644 --- a/src/Plugin/paragraphs/Behavior/UIStyleOptions.php +++ b/src/Plugin/paragraphs/Behavior/UIStyleOptions.php @@ -180,7 +180,7 @@ class UIStyleOptions extends ParagraphsBehaviorBase { // @phpstan-ignore-next-line $form['enabled_styles'][$group_key]['#open'] = $opened_group; if (isset($this->configuration['enabled_styles'][$group_key])) { - $plugin_element['#default_value'] = isset($this->configuration['enabled_styles'][$group_key][$style_plugin_id]) ? $style_plugin_id : ''; + $plugin_element['#default_value'] = $this->configuration['enabled_styles'][$group_key][$style_plugin_id] ?? ''; } $form['enabled_styles'][$group_key][$style_plugin_id] = $plugin_element; } -- GitLab