Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
layoutbuilder_extras
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
layoutbuilder_extras
Commits
1afb90ba
Commit
1afb90ba
authored
7 months ago
by
Peter Neyens
Committed by
Tim Diels
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3393166
by p-neyens, tim-diels: Incorrect data type usage for contextual_links_roles
parent
747b9bfe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Issue #3393166 by p-neyens: Incorrect data type usage for contextual_links_roles
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/install/layoutbuilder_extras.settings.yml
+1
-1
1 addition, 1 deletion
config/install/layoutbuilder_extras.settings.yml
src/Form/LayoutBuilderExtrasSettingsForm.php
+2
-2
2 additions, 2 deletions
src/Form/LayoutBuilderExtrasSettingsForm.php
with
3 additions
and
3 deletions
config/install/layoutbuilder_extras.settings.yml
+
1
−
1
View file @
1afb90ba
...
...
@@ -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
:
{
}
This diff is collapsed.
Click to expand it.
src/Form/LayoutBuilderExtrasSettingsForm.php
+
2
−
2
View file @
1afb90ba
...
...
@@ -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
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment