Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    hyperlocal-marketplace-guide

    Get the Static Block Content in Controller

    Today we will learn how we can get the cms/static block content in Controller’s action file.
    Here we go.

    To get the job done, we need to use the following classes :

    \Magento\Cms\Model\Block
    \Magento\Cms\Model\Template\FilterProvider

    This is a simple code that helps us to get the html content of the static/cms block to use it further.
    happy coding :).

    . . .

    Comments (2)

    Add Your Comment

  • highriskgateways
    Thanks for sharing an Awesome Blog.
    • Nishad Bhan
      Thanks, Dear. For any doubts you can drop a mail at support@webkul.com
  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close