Best practices in Magento 2 development

In the previous chapters, the concern about layout configuration files and theme declaration was evident in the theme development process, making it necessary for us to follow specific standards for proper functioning in the instance. Besides the correct declaration, it is necessary that the codification follow standards of quality and functionality within the proposed architecture.

Magento 2 uses the standards provided by Zend Coding Standards and by the PHP Framework Interop Group, which decide the format in which themes and modules must operate in the Magento system.

Tip

For more information about the Zend Coding Standards, refer to the official documentation at https://framework.zend.com/manual/1.12/en/coding-standard.html ...

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.