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
b92483a4
Commit
b92483a4
authored
5 months ago
by
Jean Valverde
Committed by
Mikael Meulle
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3491536
by mogtofu33, just_like_good_vibes: Icon as slot or prop
parent
e7baca91
No related branches found
No related tags found
1 merge request
!283
Issue #3491536 by mogtofu33: Icon as slot or prop
Pipeline
#359332
passed
5 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/Derivative/EntityFieldSourceDeriverBase.php
+1
-0
1 addition, 0 deletions
src/Plugin/Derivative/EntityFieldSourceDeriverBase.php
src/Plugin/UiPatterns/Source/DerivableContextSourceBase.php
+13
-1
13 additions, 1 deletion
src/Plugin/UiPatterns/Source/DerivableContextSourceBase.php
with
14 additions
and
1 deletion
src/Plugin/Derivative/EntityFieldSourceDeriverBase.php
+
1
−
0
View file @
b92483a4
...
...
@@ -136,6 +136,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
"label"
=>
$field_storage_definition
->
getLabel
(),
"bundles"
=>
array_values
(
$field_info
[
'bundles'
]
??
[]),
"metadata"
=>
[
"type"
=>
$field_storage_definition
->
getType
(),
"configurable"
=>
(
$field_storage_definition
instanceof
FieldStorageConfig
),
"editorial"
=>
in_array
(
$field_name
,
$entityFieldsClassification
[
"fields_editorial"
]),
"parent_base"
=>
in_array
(
$field_name
,
$entityFieldsClassification
[
"parents_base"
]),
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/UiPatterns/Source/DerivableContextSourceBase.php
+
13
−
1
View file @
b92483a4
...
...
@@ -128,7 +128,19 @@ abstract class DerivableContextSourceBase extends SourcePluginBase {
}
$sources
=
$sources
[
"value"
];
$source_configuration
=
$this
->
isSlot
()
?
array_values
(
$sources
[
"sources"
])[
0
]
:
$sources
;
if
(
$this
->
isSlot
())
{
if
(
isset
(
$sources
[
"sources"
]))
{
$source_configuration
=
array_values
(
$sources
[
"sources"
])[
0
];
}
}
else
{
$source_configuration
=
$sources
;
}
if
(
!
isset
(
$source_configuration
[
"source_id"
]))
{
return
$this
->
sourcePlugins
;
}
foreach
(
$derived_contexts
as
$derived_context
)
{
$target_plugin_configuration
=
array_merge
(
$source_configuration
[
"source"
]
??
[],
[
"context"
=>
$derived_context
,
...
...
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