I need to modify the layout xml for another module from my Magento 2 module. In this module they use in the controller execute() method a way to add their layout xml:
I need to use the custom_module_layout.xml in my module to modify a template and block class, but it seems Magento 2 doesn't look in my module for this layout file even when I have it in the proper location and my module.xml file has set to load their module first.
Is this a Magento 2 bug or just way it does things? So I would have to add a plugin to execute() to add my own layout xml file, or is there a better way?