Create static blocks programmatically in Magento2

Creating a static blocks in Magento is simple as navigate to Admin Panel -> CMS -> Static Blocks. But while you developing your extension you might need to create a Magento static blocks programmatically.

Here is the way how you can achieve it:

 

That’s it!.

Clear cache and upgrade magento.

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*


*