How to call cms static block in .phtml file in magento 2?

For calling cms static block use below code in your phtml file.


<?php
echo $this->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('your_block_identifier')
->toHtml();
?>