How to render a form programmatically in Drupal 8?

13/03/2017
How to render a form programmatically in Drupal 8

The purpose of this Drupal 8’s snippet is to learn how to render a form programmatically in Drupal 8.

  /**
   * {@inheritdoc}
   */
  public function build() {
    return \Drupal::formBuilder()->getForm('Drupal\sfc\Form\SfcForm');
  }