We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ed3aa3 + a3e4391 commit 240560bCopy full SHA for 240560b
app/code/Magento/Backend/Block/Template.php
@@ -17,10 +17,12 @@
17
* Example:
18
* <block name="my.block" class="Magento\Backend\Block\Template" template="My_Module::template.phtml" >
19
* <arguments>
20
- * <argument name="viewModel" xsi:type="object">My\Module\ViewModel\Custom</argument>
+ * <argument name="view_model" xsi:type="object">My\Module\ViewModel\Custom</argument>
21
* </arguments>
22
* </block>
23
*
24
+ * Your class object can then be accessed by doing $block->getViewModel()
25
+ *
26
* @api
27
* @SuppressWarnings(PHPMD.NumberOfChildren)
28
* @since 100.0.2
0 commit comments