Skip to content

Commit b0004dd

Browse files
MC-3028: Convert Existing Configuration to New Format
- remove allowed_parents
1 parent 816beb1 commit b0004dd

24 files changed

+1
-113
lines changed

app/code/Magento/PageBuilder/etc/content_type.xsd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<xs:element type="xs:string" name="backend_template" minOccurs="0"/>
2424
<xs:element type="parents" name="parents" minOccurs="0" maxOccurs="1"/>
2525
<xs:element type="children" name="children" minOccurs="0" maxOccurs="1"/>
26-
<xs:element type="allowed_parents" name="allowed_parents" minOccurs="0" maxOccurs="1"/>
2726
<xs:element name="appearances" minOccurs="0" maxOccurs="1">
2827
<xs:complexType>
2928
<xs:sequence>
@@ -85,11 +84,6 @@
8584
</xs:sequence>
8685
<xs:attribute type="xs:string" name="default_policy" use="optional"/>
8786
</xs:complexType>
88-
<xs:complexType name="allowed_parents">
89-
<xs:sequence>
90-
<xs:element type="parent" name="parent" minOccurs="1" maxOccurs="unbounded"/>
91-
</xs:sequence>
92-
</xs:complexType>
9387
<xs:complexType name="parent">
9488
<xs:attribute type="xs:string" name="name" use="required"/>
9589
<xs:attribute type="xs:string" name="policy" use="optional"/>

app/code/Magento/PageBuilder/etc/content_type_merged.xsd

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<xs:element type="xs:string" name="backend_template" minOccurs="0"/>
2424
<xs:element type="parents" name="parents" minOccurs="0" maxOccurs="1"/>
2525
<xs:element type="children" name="children" minOccurs="0" maxOccurs="1"/>
26-
<xs:element type="allowed_parents" name="allowed_parents" minOccurs="0" maxOccurs="1"/>
2726
<xs:element name="appearances" minOccurs="0" maxOccurs="1">
2827
<xs:complexType>
2928
<xs:sequence>
@@ -85,14 +84,9 @@
8584
</xs:sequence>
8685
<xs:attribute type="xs:string" name="default_policy" use="required"/>
8786
</xs:complexType>
88-
<xs:complexType name="allowed_parents">
89-
<xs:sequence>
90-
<xs:element type="parent" name="parent" minOccurs="1" maxOccurs="unbounded"/>
91-
</xs:sequence>
92-
</xs:complexType>
9387
<xs:complexType name="parent">
9488
<xs:attribute type="xs:string" name="name" use="required"/>
95-
<xs:attribute type="xs:string" name="policy" use="optional"/>
89+
<xs:attribute type="xs:string" name="policy" use="required"/>
9690
</xs:complexType>
9791
<xs:complexType name="child">
9892
<xs:attribute type="xs:string" name="name" use="required"/>

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/accordion.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
sortOrder="10"
1919
translate="label">
2020
<children default_policy="deny"/>
21-
<allowed_parents>
22-
<parent name="row"/>
23-
<parent name="column"/>
24-
<parent name="tab-item"/>
25-
</allowed_parents>
2621
<appearances>
2722
<appearance default="true"
2823
name="default"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/anchor.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
sortOrder="1"
1717
translate="label">
1818
<children default_policy="deny"/>
19-
<allowed_parents>
20-
<parent name="row"/>
21-
<parent name="column"/>
22-
<parent name="tab-item"/>
23-
</allowed_parents>
2419
<appearances>
2520
<appearance default="true"
2621
name="default"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/banner.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
sortOrder="1"
1818
translate="label">
1919
<children default_policy="deny"/>
20-
<allowed_parents>
21-
<parent name="row"/>
22-
<parent name="column"/>
23-
<parent name="tab-item"/>
24-
</allowed_parents>
2520
<appearances>
2621
<appearance name="collage-left"
2722
preview_template="Magento_PageBuilder/content-type/banner/collage-left/preview"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/block.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
translate="label">
1919
<backend_block>Magento\PageBuilder\Block\ContentType\Block</backend_block>
2020
<children default_policy="deny"/>
21-
<allowed_parents>
22-
<parent name="row"/>
23-
<parent name="column"/>
24-
<parent name="tab-item"/>
25-
</allowed_parents>
2621
<appearances>
2722
<appearance default="true"
2823
name="default"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/button_item.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
<parent name="buttons" policy="allow"/>
2121
</parents>
2222
<children default_policy="deny"/>
23-
<allowed_parents>
24-
<parent name="buttons"/>
25-
</allowed_parents>
2623
<is_visible>false</is_visible>
2724
<appearances>
2825
<appearance default="true"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/buttons.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
<children default_policy="deny">
2121
<child name="button-item" policy="allow"/>
2222
</children>
23-
<allowed_parents>
24-
<parent name="row"/>
25-
<parent name="column"/>
26-
<parent name="tab-item"/>
27-
</allowed_parents>
2823
<appearances>
2924
<appearance default="true"
3025
name="inline"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/column.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
<child name="row" policy="deny"/>
2727
<child name="column" policy="deny"/>
2828
</children>
29-
<allowed_parents>
30-
<parent name="row"/>
31-
<parent name="column-group"/>
32-
<parent name="tab-item"/>
33-
</allowed_parents>
3429
<appearances>
3530
<appearance default="true"
3631
name="full-height"

app/code/Magento/PageBuilder/view/base/pagebuilder/content_type/column_group.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
<children default_policy="deny">
2525
<child name="column" policy="allow"/>
2626
</children>
27-
<allowed_parents>
28-
<parent name="row"/>
29-
<parent name="tab-item"/>
30-
</allowed_parents>
3127
<is_visible>false</is_visible>
3228
<appearances>
3329
<appearance default="true"

0 commit comments

Comments
 (0)