Skip to content

Commit e2e8519

Browse files
author
Bibu Mathew
committed
MAGETWO-32027: Update theme.xml and theme.xsd
- updated them.xsd with definitions for parent - updated theme.xml with parent reference
1 parent 1be6ca1 commit e2e8519

File tree

2 files changed

+8
-0
lines changed
  • app/design/frontend/Magento/luma
  • lib/internal/Magento/Framework/Config/etc

2 files changed

+8
-0
lines changed

app/design/frontend/Magento/luma/theme.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-->
66
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
77
<title>Magento Luma</title>
8+
<parent>Magento/blank</parent>
89
<media>
910
<preview_image>media/preview.jpg</preview_image>
1011
</media>

lib/internal/Magento/Framework/Config/etc/theme.xsd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<xs:complexType>
1616
<xs:sequence>
1717
<xs:element name="title" type="title"/>
18+
<xs:element name="parent" type="parent_theme" minOccurs="0"/>
1819
<xs:element name="media" type="media" minOccurs="0"/>
1920
</xs:sequence>
2021
</xs:complexType>
@@ -26,6 +27,12 @@
2627
</xs:restriction>
2728
</xs:simpleType>
2829

30+
<!-- Short theme name: '<theme>'. Fully-qualified theme name: '<path>/<theme>'. -->
31+
<xs:simpleType name="parent_theme">
32+
<xs:restriction base="xs:string">
33+
<xs:pattern value="([^/]+/)?[^/]+"></xs:pattern>
34+
</xs:restriction>
35+
</xs:simpleType>
2936

3037
<xs:complexType name="media">
3138
<xs:sequence>

0 commit comments

Comments
 (0)