Skip to content
Snippets Groups Projects
Commit 1afb90ba authored by Peter Neyens's avatar Peter Neyens Committed by Tim Diels
Browse files

Issue #3393166 by p-neyens, tim-diels: Incorrect data type usage for contextual_links_roles

parent 747b9bfe
No related branches found
No related tags found
1 merge request!7Issue #3393166 by p-neyens: Incorrect data type usage for contextual_links_roles
......@@ -5,4 +5,4 @@ remove_empty_divs: false
enable_drag_handle_icon: false
enable_admin_css: false
contextual_links_only_lb: false
contextual_links_roles: false
contextual_links_roles: { }
......@@ -101,7 +101,7 @@ class LayoutBuilderExtrasSettingsForm extends ConfigFormBase {
'#type' => 'checkboxes',
'#options' => $roleOptions,
'#title' => $this->t('For which roles should the contextual links still be visible?'),
'#default_value' => $config->get('contextual_links_roles') ?? FALSE,
'#default_value' => $config->get('contextual_links_roles') ?? [],
];
return $form;
......@@ -121,7 +121,7 @@ class LayoutBuilderExtrasSettingsForm extends ConfigFormBase {
$config->set('enable_drag_handle_icon', $form_state->getValue('enable_drag_handle_icon', FALSE));
$config->set('enable_admin_css', $form_state->getValue('enable_admin_css', FALSE));
$config->set('contextual_links_only_lb', $form_state->getValue('contextual_links_only_lb', FALSE));
$config->set('contextual_links_roles', $form_state->getValue('contextual_links_roles', FALSE));
$config->set('contextual_links_roles', $form_state->getValue('contextual_links_roles', []));
$config->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment