0

best way to Remove Block Programmatically in Magento2

i don’t know you are aware of it or not but in magento 1 We are able to remove block  with unsetBlock() method, but in Magento2 somehow it stopped working. So, i have found a way to remove block in Magento2 programmatically.

 

to do it we can Use unsetElement() method to remove block. as like

hope this will help you.

Leave a Reply

Your email address will not be published. Required fields are marked *