Developer Question: Getting HTML from a block

Ok. 😁

So I have a custom module, and I want to grab the HTML output from a system block to add in where I want. So, in the block there is

array (
 'module' => 'system',
 'method' => 'profile_stats',
 'params' => 
 array (
 ),
 'class' => 'TemplServiceProfiles',
)

So my question is, how do I pull the generated HTML from this block in my custom module. Let's just say I want to set $sHtml to the output from above block. How do I accomplish this, and please, provide me with quick code example. This will help me understand a few other things I want to accomplish.

Thank you! 🙏

  • 201
  • More
Replies (2)
    Login or Join to comment.