I try to override admin login template, using Layout Block Argument. Here is the files I created to do that:
in Vendor/Module/view/adminhtml/layout/admin_login.xml I tried:
<referenceBlock name="admin.login">
<arguments>
<argument name="template" xsi:type="string">vendor_module::admin/login.phtml</argument>
</arguments>
</referenceBlock>
But nothing Happened, so I changed with:
<referenceBlock name="admin.login">
<action method="setTemplate">
<argument name="template" xsi:type="string">vendor_module::admin/login.phtml</argument>
</action>
</referenceBlock>
And now in magento2/var/log/system.log I have:
main.CRITICAL: Invalid template file: 'vendor_module::admin/login.phtml' in module: 'Magento_Backend' block's name: 'admin.login'
I have created the template file login.phtml in Vendor/Module/view/adminhtml/templates/admin/
so I don't know what's I'm doing wrong. I'm very new to Magento 2, I took the time to read Dev Docs and many forums but I can't find the solution by myself, anyone could help me?
Thank you so much!