class: center, middle # Magento 2 XML changes ### MUG ′s Hertogenbosch --- # Module path changes Base layout file `app/code/Yireo/Dummy/view/frontend/layout/dummy.xml` Theme layout file `app/design/frontend/custom/Yireo_Dummy/layout/dummy.xml` --- # Defining a block ```xml
...
``` ```xml
...
``` --- # Moving a block ```xml
``` --- # Containers Formerly blocks of type `core/text_list` ```xml
``` Attributes: * htmlTag = "div" * htmlId = "box1" * htmlClass = "container" * no template --- # Layout handles Layout filename determines actual layout handle: `dummy.xml` ```xml
...
``` --- # Other changes * `
` is now `
` or `
` * `
` calls now have `
` variables * Practice to add `xsi:type="string"` attribute to arguments https://wiki.magento.com/display/MAGE2DOC/XML+Instructions