Skip to content

Commit ca19b06

Browse files
committed
Use recommended argument name and magic getter
1 parent 66a76f3 commit ca19b06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Customer/view/frontend/layout/customer_address_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<arguments>
2222
<argument name="attribute_data" xsi:type="object">Magento\Customer\Block\DataProviders\AddressAttributeData</argument>
2323
<argument name="post_code_config" xsi:type="object">Magento\Customer\Block\DataProviders\PostCodesPatternsAttributeData</argument>
24-
<argument name="viewModel" xsi:type="object">Magento\Customer\ViewModel\Address</argument>
24+
<argument name="view_model" xsi:type="object">Magento\Customer\ViewModel\Address</argument>
2525
</arguments>
2626
</block>
2727
</referenceContainer>

app/code/Magento/Customer/view/frontend/templates/address/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/** @var \Magento\Customer\Block\Address\Edit $block */
88
/** @var \Magento\Customer\ViewModel\Address $viewModel */
9-
$viewModel = $block->getData('viewModel');
9+
$viewModel = $block->getViewModel();
1010
?>
1111
<?php $_company = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?>
1212
<?php $_telephone = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?>

0 commit comments

Comments
 (0)