Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bg_img_field
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
bg_img_field
Merge requests
!5
Fix Background Image Field Formatter Dependencies and Image Loading
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix Background Image Field Formatter Dependencies and Image Loading
issue/bg_img_field-3484950:8.x-2.x
into
8.x-2.x
Overview
0
Commits
2
Pipelines
3
Changes
1
Merged
Nicholas Stees
requested to merge
issue/bg_img_field-3484950:8.x-2.x
into
8.x-2.x
4 months ago
Overview
0
Commits
2
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Viewing commit
156a790c
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
156a790c
Directly manipulate the field item properties
· 156a790c
Nicholas Stees
authored
4 months ago
src/Plugin/Field/FieldType/BgImgItem.php
+
1
−
1
Options
@@ -245,6 +245,6 @@ class BgImgItem extends ImageItem {
// Handle the custom file extensions setting before saving.
$extensions
=
preg_split
(
'/[\s,]+/'
,
$this
->
getSetting
(
'file_extensions'
));
$this
->
setSetting
(
'
file_extensions
'
,
implode
(
' '
,
array_filter
(
$extensions
))
)
;
$this
->
file_extensions
=
implode
(
' '
,
array_filter
(
$extensions
));
}
}
Loading