Skip to content

Commit 819c65e

Browse files
ENGCOM-1473: Add 'const' type support to layout arguments #15058
2 parents 94759da + 825832b commit 819c65e

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

app/code/Magento/Ui/etc/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@
251251
<type name="Magento\Framework\Data\Argument\Interpreter\Composite">
252252
<arguments>
253253
<argument name="interpreters" xsi:type="array">
254+
<item name="const" xsi:type="object">Magento\Framework\Data\Argument\Interpreter\Constant</item>
254255
<item name="object" xsi:type="object">configurableObjectArgumentInterpreterProxy</item>
255256
<item name="configurableObject" xsi:type="object">configurableObjectArgumentInterpreterProxy</item>
256257
<item name="array" xsi:type="object">arrayArgumentInterpreterProxy</item>

lib/internal/Magento/Framework/View/Layout/etc/layout_merged.xsd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@
6262
</xs:extension>
6363
</xs:complexContent>
6464
</xs:complexType>
65+
66+
<xs:complexType name="const">
67+
<xs:complexContent>
68+
<xs:extension base="argumentType" />
69+
</xs:complexContent>
70+
</xs:complexType>
6571
</xs:schema>

lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@
3232
<xs:field xpath="@name"/>
3333
</xs:unique>
3434
</xs:element>
35+
36+
<xs:complexType name="const">
37+
<xs:complexContent>
38+
<xs:extension base="argumentType" />
39+
</xs:complexContent>
40+
</xs:complexType>
3541
</xs:schema>

0 commit comments

Comments
 (0)