Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_patterns
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
ui_patterns
Merge requests
!207
Resolve
#3467655
"2.0.0 beta2 field formatters"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3467655
"2.0.0 beta2 field formatters"
issue/ui_patterns-3467655:3467655-2.0.0-beta2-field-formatters
into
2.0.x
Overview
0
Commits
11
Pipelines
9
Changes
47
Merged
Mikael Meulle
requested to merge
issue/ui_patterns-3467655:3467655-2.0.0-beta2-field-formatters
into
2.0.x
8 months ago
Overview
0
Commits
11
Pipelines
9
Changes
47
Expand
Closes
#3467655
0
0
Merge request reports
Compare
2.0.x
version 8
a8489a3d
7 months ago
version 7
86195708
7 months ago
version 6
40a0c344
7 months ago
version 5
6c91ebe3
7 months ago
version 4
2be46cb2
7 months ago
version 3
930c81d0
7 months ago
version 2
312a7fd4
7 months ago
version 1
ec5bccb4
7 months ago
2.0.x (base)
and
latest version
latest version
31606f8e
11 commits,
7 months ago
version 8
a8489a3d
10 commits,
7 months ago
version 7
86195708
9 commits,
7 months ago
version 6
40a0c344
8 commits,
7 months ago
version 5
6c91ebe3
7 commits,
7 months ago
version 4
2be46cb2
6 commits,
7 months ago
version 3
930c81d0
4 commits,
7 months ago
version 2
312a7fd4
3 commits,
7 months ago
version 1
ec5bccb4
2 commits,
7 months ago
47 files
+
1113
−
735
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
47
Search (e.g. *.vue) (Ctrl+P)
modules/ui_patterns_field_formatters/src/Plugin/Field/FieldFormatter/ComponentFormatterBase.php
+
2
−
1
Options
@@ -122,7 +122,8 @@ abstract class ComponentFormatterBase extends FormatterBase {
$settings
=
$this
->
getSetting
(
'ui_patterns'
);
$summary
[
"selected"
]
=
$this
->
t
(
'No component selected.'
)
->
render
();
if
(
!
empty
(
$settings
[
'component_id'
]))
{
$summary
[
"selected"
]
=
$this
->
t
(
'Component ":component" selected.'
,
[
':component'
=>
$options
[
$settings
[
'component_id'
]]])
->
render
();
$summary
[
"selected"
]
=
$this
->
t
(
'Component ":component" selected.'
,
[
':component'
=>
$options
[
$settings
[
'component_id'
]]
??
""
])
->
render
();
}
return
$summary
;
}
Loading