File tree Expand file tree Collapse file tree 6 files changed +50
-15
lines changed
dev/tests/integration/testsuite/Magento/PageBuilder/_files/content_type Expand file tree Collapse file tree 6 files changed +50
-15
lines changed Original file line number Diff line number Diff line change 35
35
'preview_component ' => 'Path/to/preview/component ' ,
36
36
'master_component ' => 'Path/to/master/component ' ,
37
37
'allowed_parents ' => [
38
- 0 => 'stage '
38
+ 0 => 'type3 '
39
39
],
40
40
'appearances ' => [
41
41
'default ' => [
229
229
'form ' => 'pagebuilder_type2_custom_form ' ,
230
230
'group ' => 'group2 ' ,
231
231
'allowed_parents ' => [
232
- 0 => 'stage ' ,
233
- 1 => 'type1 '
232
+ 0 => 'type1 '
233
+ ],
234
+ 'parents ' => [
235
+ 'defaultPolicy ' => 'deny ' ,
236
+ 'types ' => [
237
+ ['name ' => 'stage ' , 'policy ' => 'deny ' ],
238
+ ['name ' => 'type1 ' , 'policy ' => 'allow ' ]
239
+ ]
240
+ ],
241
+ 'children ' => [
242
+ 'defaultPolicy ' => 'deny ' ,
243
+ 'types ' => [
244
+ ['name ' => 'type3 ' , 'policy ' => 'allow ' ],
245
+ ]
234
246
],
235
247
'appearances ' => [
236
248
'default ' => [
649
661
'allowed_parents ' => [
650
662
0 => 'stage '
651
663
],
664
+ 'parents ' => [
665
+ 'defaultPolicy ' => 'deny ' ,
666
+ 'types ' => [
667
+ ['name ' => 'stage ' , 'policy ' => 'allow ' ],
668
+ ]
669
+ ],
670
+ 'children ' => [
671
+ 'defaultPolicy ' => 'allow ' ,
672
+ 'types ' => []
673
+ ],
652
674
'appearances ' => [
653
675
'default ' => [
654
676
'preview_template ' => 'Path/to/preview/template ' ,
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_PageBuilder:etc/content_type.xsd" >
9
9
<content_types >
10
10
<type name =" type1" translate =" label" label =" Type 1 Label" icon =" pagebuilder-type1-custom-icon" component =" Path/to/component" preview_component =" Path/to/preview/component" form =" pagebuilder_type1_custom_form" group =" group2" >
11
- <allowed_parents >
12
- <parent name =" stage" />
13
- </allowed_parents >
14
11
<appearances >
15
12
<appearance name =" default" default =" true" preview_template =" Path/to/preview/template" render_template =" Path/to/render/template" reader =" Path/to/reader" >
16
13
<data_mapping >
Original file line number Diff line number Diff line change 11
11
<backend_block >Path/to/backend/block</backend_block >
12
12
<backend_template >Path/to/backend/template</backend_template >
13
13
<is_visible >true</is_visible >
14
- <allowed_parents >
15
- <parent name =" stage" />
16
- </allowed_parents >
14
+ <parents default_policy =" deny" >
15
+ <parent name =" stage" policy =" allow" />
16
+ </parents >
17
+ <children default_policy =" allow" />
17
18
<appearances >
18
19
<appearance name =" default" default =" true" preview_template =" Path/to/preview/template" render_template =" Path/to/render/template" reader =" Path/to/reader" >
19
20
<data name =" data1" >value1</data >
Original file line number Diff line number Diff line change 11
11
<backend_block >Path/to/custom/backend/block</backend_block >
12
12
<backend_template >Path/to/custom/backend/template</backend_template >
13
13
<is_visible >false</is_visible >
14
- <allowed_parents >
15
- <parent name =" type1" />
16
- </allowed_parents >
14
+ <parents >
15
+ <parent name =" stage" policy =" deny" />
16
+ <parent name =" type1" policy =" allow" />
17
+ </parents >
18
+ <children default_policy =" deny" >
19
+ <child name =" type3" policy =" allow" />
20
+ </children >
17
21
<appearances >
18
22
<appearance name =" default" default =" true" preview_template =" Path/to/preview/custom/template" render_template =" Path/to/render/custom/template" reader =" Path/to/custom/reader" >
19
23
<data name =" data1" >custom_value</data >
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_PageBuilder:etc/content_type.xsd" >
9
9
<content_types >
10
10
<type name =" type3" translate =" label" sortOrder =" 3" label =" Type 3" icon =" pagebuilder-type3-icon" component =" Path/to/custom/component" form =" pagebuilder_type3_form" group =" group1" >
11
- <allowed_parents >
12
- <parent name =" stage" />
13
- </allowed_parents >
11
+ <parents default_policy =" deny" >
12
+ <parent name =" stage" policy =" allow" />
13
+ </parents >
14
+ <children default_policy =" allow" />
14
15
<appearances >
15
16
<appearance name =" default" default =" true" preview_template =" Path/to/preview/template" render_template =" Path/to/render/template" reader =" Path/to/reader" >
16
17
<data_mapping >
Original file line number Diff line number Diff line change 18
18
'allowed_parents ' => [
19
19
0 => 'stage '
20
20
],
21
+ 'parents ' => [
22
+ 'defaultPolicy ' => 'deny ' ,
23
+ 'types ' => [
24
+ ['name ' => 'stage ' , 'policy ' => 'allow ' ]
25
+ ]
26
+ ],
27
+ 'children ' => [
28
+ 'defaultPolicy ' => 'allow ' ,
29
+ 'types ' => []
30
+ ],
21
31
'appearances ' => [
22
32
'default ' => [
23
33
'preview_template ' => 'Path/to/preview/template ' ,
You can’t perform that action at this time.
0 commit comments