Skip to content

Commit

Permalink
Use recommended argument name and magic getter
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed Jan 8, 2020
1 parent 66a76f3 commit ca19b06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<arguments>
<argument name="attribute_data" xsi:type="object">Magento\Customer\Block\DataProviders\AddressAttributeData</argument>
<argument name="post_code_config" xsi:type="object">Magento\Customer\Block\DataProviders\PostCodesPatternsAttributeData</argument>
<argument name="viewModel" xsi:type="object">Magento\Customer\ViewModel\Address</argument>
<argument name="view_model" xsi:type="object">Magento\Customer\ViewModel\Address</argument>
</arguments>
</block>
</referenceContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/** @var \Magento\Customer\Block\Address\Edit $block */
/** @var \Magento\Customer\ViewModel\Address $viewModel */
$viewModel = $block->getData('viewModel');
$viewModel = $block->getViewModel();
?>
<?php $_company = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?>
<?php $_telephone = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?>
Expand Down

0 comments on commit ca19b06

Please sign in to comment.