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
d5149893
Commit
d5149893
authored
8 months ago
by
Mikael Meulle
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3466385
by just_like_good_vibes: Field formatter process text does not appear processed
parent
4c826964
No related branches found
No related tags found
1 merge request
!174
Fix Markup conversion to slot
Pipeline
#246669
passed
8 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/UiPatterns/PropType/SlotPropType.php
+1
-3
1 addition, 3 deletions
src/Plugin/UiPatterns/PropType/SlotPropType.php
with
1 addition
and
3 deletions
src/Plugin/UiPatterns/PropType/SlotPropType.php
+
1
−
3
View file @
d5149893
...
...
@@ -78,9 +78,7 @@ class SlotPropType extends PropTypePluginBase {
*/
public
static
function
convertFrom
(
string
$prop_type
,
mixed
$value
):
mixed
{
return
match
(
$prop_type
)
{
'string'
=>
[
'#plain_text'
=>
$value
,
],
'string'
=>
(
$value
instanceof
MarkupInterface
)
?
[
"#children"
=>
$value
]
:
[
"#plain_text"
=>
$value
],
};
}
...
...
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