I am new to drupal, I am using drupal 8, I have develop a custom form by extending FormBase controller and i am trying to render it using a custom controller like below.
$form = $this->formBuilder->getForm('Drupal\xyz\Forms\XyzActionsForm',$parameter);
return [
'#form'=>$form
]
This works fine form me. But now i also want custom html below this form so try below code
$form = $this->formBuilder->getForm('Drupal\xyz\Forms\XyzActionsForm',$parameter);
$form = render(form);
$form .= '<div>custom html </div>';
return [
'#markup'=>$form
]
But this didn't work for me, Can anyone let me know how to achieve this.