-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathmonsieurbiz_settings_plugin_custom.yaml
More file actions
117 lines (112 loc) · 4.46 KB
/
Copy pathmonsieurbiz_settings_plugin_custom.yaml
File metadata and controls
117 lines (112 loc) · 4.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
monsieurbiz_sylius_settings:
plugins:
app.default:
vendor_name: Monsieur Biz
vendor_url:
plugin_name: Current App
description: Platform's settings
icon: bi:bullseye
use_locales: true
classes:
form: App\Form\SettingsType
default_values:
demo_message: My amazing message
demo_title: My amazing title
enabled: true
app.other:
vendor_name: Monsieur Biz
vendor_url:
plugin_name: Other Config
description: Other settings
icon: lucide:test-tube
use_locales: true
classes:
form: App\Form\SettingsType
sylius_twig_hooks:
hooks:
'sylius_shop.base.header':
demo_message:
template: 'views/message.html.twig'
priority: 900
# Add a custom action to the other settings page (not for all settings)
'sylius_admin.app_other_settings.edit.content.header.title_block.actions':
download_fmt:
template: 'admin/settings/actions/button.html.twig'
priority: 200
sylius_fixtures:
suites:
default:
fixtures:
monsieurbiz_settings:
options:
custom:
-
alias: app.default
path: demo_message
channel: FASHION_WEB
locale: en_US
type: text
value: My amazing very fashion message
-
alias: app.default
path: demo_message
# no channel because we want the default
locale: fr_FR
type: text
value: Mon message vraiment très fashion
-
alias: app.default
path: demo_message
# no channel because we want the default
# no locale because we want the default
type: text
value: My very default message
local:
listeners:
logger: ~
fixtures:
monsieurbiz_settings:
options:
custom:
-
alias: app.default
path: test_bool
type: boolean
value: true
ignore_if_exists: true
-
alias: app.default
path: test_bool2
type: boolean
value: false
-
alias: app.default
path: test_json
type: json
value: |
{"foo":"bar"}
-
alias: app.default
path: test_json_array
type: json
value: {"foo":"baz"}
-
alias: app.default
path: test_int
type: integer
value: 42
-
alias: app.default
path: test_float
type: float
value: 13.37
-
alias: app.default
path: test_date
type: date
value: 2023-07-24
-
alias: app.default
path: test_datetime
type: datetime
value: 2023-07-24 01:02:03