I have static block in backend named as "varmo_custom_block_for_header".
I want to echo that block content into a
I trying this way but not succeed :
<?php echo $block->getLayout()->createBlock('magento\Cms\Block\Block')->setBlockId('varmo_custom_block_for_header')>toHtml();?>
But getting error as :
Fatal error: Call to undefined function toHtml() in /opt/lampp/htdocs/xyz/app/design/frontend/xyzthemes/mo/xyzthemes_mo/templates/html/header.phtml on line 47