Skip to content

Commit cc51b77

Browse files
author
Namrata Vora
committed
Added correct block class for frontend viewModel reference example.
1 parent fa211bd commit cc51b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Element/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* custom view models in block arguments in layout handle file.
2020
*
2121
* Example:
22-
* <block name="my.block" class="Magento\Backend\Block\Template" template="My_Module::template.phtml" >
22+
* <block name="my.block" class="Magento\Framework\View\Element\Template" template="My_Module::template.phtml" >
2323
* <arguments>
2424
* <argument name="viewModel" xsi:type="object">My\Module\ViewModel\Custom</argument>
2525
* </arguments>

0 commit comments

Comments
 (0)