Skip to main content
1 of 2
Erbie
  • 19
  • 6

How can I return html form in BlockBase Build?

I include some form from API. And I want to include it in block, using Drupal\Core\Block\BlockBase. My function return html tags, that has tag .

But function build() return empty array. $element = array( '#markup' => $html ); return $element;

Erbie
  • 19
  • 6