Magento 2 layout system

As seen in the previous chapter, the Magento 2 layout layer has a basic standard of positioning elements. If we think of a simple page that displays products in a given category, we have the following positioning vision:

Magento 2 layout system

You can see that each element's position has a specific role in rendering the layout. The controller specifies the rendering of each block according to their respective models and visualization layers:

Magento 2 layout system

The Magento 2 layout system, defined by XML files, is responsible for manipulating elements and the behavior ...

Get Magento 2 Theme Design - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.