Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizventurote/d53ff47426e1534e72af4495aae3fca1 to your computer and use it in GitHub Desktop.
Save luizventurote/d53ff47426e1534e72af4495aae3fca1 to your computer and use it in GitHub Desktop.
Debugging layout XML loading in Magento 2

Open following file :

{root}/vendor/magento/framework/View/Model/Layout/Merge.php

and find _loadFileLayoutUpdatesXml function at line number 681.

Just echo $file->getFilename(); in foerach. You can see list of layout xml files adding in that action.

You can also check other function of this file. They are very useful to debug layout xml in Magento 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment