The phrase Sets the object that should represent $this in template
is wrong.
Should be Sets the object that should represent $block in template
.
Magento 2 templates (*.phtml files) get the block instance as $block variable, not $this
The phrase Sets the object that should represent $this in template
is wrong.
Should be Sets the object that should represent $block in template
.
Magento 2 templates (*.phtml files) get the block instance as $block variable, not $this