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
Commits
7ed8c4b9
Commit
7ed8c4b9
authored
8 months ago
by
Mikael Meulle
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3465262
by just_like_good_vibes: Incorect rendering of data in views-related sources
parent
37283993
No related branches found
No related tags found
1 merge request
!162
fix rendering bug in view sources
Pipeline
#240787
passed with warnings
8 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/ui_patterns_views/src/Plugin/UiPatterns/Source/ViewsSourceBase.php
+5
-3
5 additions, 3 deletions
...ns_views/src/Plugin/UiPatterns/Source/ViewsSourceBase.php
with
5 additions
and
3 deletions
modules/ui_patterns_views/src/Plugin/UiPatterns/Source/ViewsSourceBase.php
+
5
−
3
View file @
7ed8c4b9
...
...
@@ -111,12 +111,14 @@ abstract class ViewsSourceBase extends SourcePluginBase {
if
(
empty
(
$output
))
{
return
[
'#markup'
=>
''
];
}
//
Value needs to be render array so slots can handle multiple sources
.
//
We use #children to avoir filtering
.
if
(
$output
instanceof
MarkupInterface
)
{
return
[
'#markup'
=>
$output
->
__toString
()];
return
[
'#children'
=>
(
string
)
$output
,
];
}
if
(
is_scalar
(
$output
))
{
return
[
'#
markup
'
=>
$output
];
return
[
'#
children
'
=>
$output
];
}
return
$output
;
}
...
...
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