In Magento 2, layout handle XML files introduced a few new top level tags (body
, head
, etc)
<page>
<body>
<!-- ... -->
</body>
<head>
<!-- ... -->
</head>
</page>
These tags trigger extra programatic node processing when Magento is loading and parsing the layout update XML files. For example, the body
tag's extra processing happens in the following files
./lib/internal/Magento/Framework/View/Page/Config/Generator/Body.php
./lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php
From the point of view of a module or theme developer using the system -- what are these new top level tags called? i.e. in Magento 1, the top level tags (under the root tag) were layout handles
, and handles contained block
and reference
instructions.
i.e. In Magento 2, each individual module layout handle XML file name is a handle, each top level tag (under the root page
tag) is called a [BLANK], and [BLANK] tags contain referenceBlock
and referenceContainer
instructions.
What, in Magento 2 parlance, is "[BLANK]"
<body> section
and<head> section
getModel
,helper
orcreateBlock
methods that Magento uses to lookup a PHP class name" vs. "The class alias". Which would you rather read in a tutorial over and over again?html
,move
,uiComponent
, etc.