Skip to content

Commit ea89448

Browse files
Update ReferenceBlock Class
Including the "class" attribute to the typeReferenceBlock definition allows you to update a block class when overriding or updating a layout.xml file without the need to remove the original block and re-add it with the same name but different class.
1 parent 77af5d6 commit ea89448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
</xs:choice>
314314
<xs:attribute type="elementNameType" name="name" use="required"/>
315315
<xs:attribute type="xs:string" name="template" use="optional"/>
316+
<xs:attribute type="xs:string" name="class" use="optional"/>
316317
<xs:attribute type="xs:boolean" name="display" default="true" use="optional"/>
317318
<xs:attribute type="xs:boolean" name="remove" use="optional"/>
318319
</xs:complexType>

0 commit comments

Comments
 (0)