Skip to content

Commit a91c974

Browse files
committed
Added Priority for YAML configuration
1 parent e531aa3 commit a91c974

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

code_samples/back_office/components/twig_components.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ ibexa_twig_components:
22
admin-ui-user-menu:
33
custom-html-component:
44
type: html
5+
priority: 0
56
arguments:
67
content: '<b>Hello world!</b>'
78
custom-template-component:
89
type: template
10+
priority: 50
911
arguments:
1012
template: '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig'
1113
parameters:

docs/templating/components.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ ibexa_twig_components:
4444
# Component name
4545
google_tag_manager:
4646
type: script
47+
priority: 50
4748
arguments:
4849
src: 'https://...'
4950
```
5051

51-
The Component priority cannot be specified when using the YAML configuration, but it allows you to use the built-in components to quickly achieve common goals.
52+
YAML configuration allows you to use the built-in components to quickly achieve common goals.
5253

5354
You can use an unique group name when creating a Twig Component to create your own group.
5455

0 commit comments

Comments
 (0)