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
78f018b2
Commit
78f018b2
authored
8 months ago
by
christian.wiedemann
Browse files
Options
Downloads
Patches
Plain Diff
Update component info alter
parent
2751e50d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui_patterns.api.php
+4
-4
4 additions, 4 deletions
ui_patterns.api.php
with
4 additions
and
4 deletions
ui_patterns.api.php
+
4
−
4
View file @
78f018b2
...
...
@@ -9,11 +9,11 @@
/**
* Alter Hook for SDC Component definition.
*
* @param array $definition
* SDC Component definition.
* @param array $definition
s
* SDC Component definition
s
.
*
* @see \Drupal\ui_patterns\ComponentPluginManager
*/
function
hook_component_
definition
_alter
(
array
&
$definition
)
{
$definition
[
'slots'
][
'slot_name'
][
"title"
]
=
'demo'
;
function
hook_component_
info
_alter
(
array
&
$definition
s
)
{
$definition
s
[
'COMPONENT_ID'
]
[
'slots'
][
'slot_name'
][
"title"
]
=
'demo'
;
}
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