invoke a form to display programmatically in Drupal 8

Submitted by barnettech on Wed, 02/13/2019 - 12:55

invoke a form within a block or custom module page

$form = \Drupal::formBuilder()->getForm('Drupal\example\Form\ExampleForm');