diff --git a/vendor/magento/module-customer/ViewModel/CreateAccountButton.php b/vendor/magento/module-customer/ViewModel/CreateAccountButton.php new file mode 100644 index 00000000000..8fa8718fe37 --- /dev/null +++ b/vendor/magento/module-customer/ViewModel/CreateAccountButton.php @@ -0,0 +1,26 @@ + Magento\Customer\Block\DataProviders\AddressAttributeData + Magento\Customer\ViewModel\CreateAccountButton diff --git a/vendor/magento/module-customer/view/frontend/layout/customer_account_login.xml b/vendor/magento/module-customer/view/frontend/layout/customer_account_login.xml index 3518df736c4..8fb51eeb665 100644 --- a/vendor/magento/module-customer/view/frontend/layout/customer_account_login.xml +++ b/vendor/magento/module-customer/view/frontend/layout/customer_account_login.xml @@ -15,6 +15,9 @@ + + Magento\Customer\ViewModel\LoginButton + diff --git a/vendor/magento/module-customer/view/frontend/templates/form/login.phtml b/vendor/magento/module-customer/view/frontend/templates/form/login.phtml index 119bb72083a..0cc3dd5973b 100644 --- a/vendor/magento/module-customer/view/frontend/templates/form/login.phtml +++ b/vendor/magento/module-customer/view/frontend/templates/form/login.phtml @@ -7,6 +7,8 @@ // phpcs:disable Generic.Files.LineLength.TooLong /** @var \Magento\Customer\Block\Form\Login $block */ +/** @var \Magento\Customer\ViewModel\LoginButton $loginButtonViewModel */ +$loginButtonViewModel = $block->getData('login_button_view_model'); ?> + - +