title: How can I get the Register form on the front page in Drupal 8?
body: <p>I've been trying to get the create account form (register form) in a pop-up on the front page, without any success.</p>
  
  <p>Can anybody here help me out with an example that works?</p>
  
  <p>I've tried adapting examples from Drupal 7 but couldn't get them to work, I've tried to make a custom form but it didn't work, I've tried installing modules that could handle this but they also didn't work.</p>
  
  <p>The last attempt I've made to resolve this problem was:</p>
  
  <pre><code>&lt;?php
  
  /**
  * @file
  * Functions to support theming in the themename theme.
  */
  
  use Drupal\Core\Form\FormBase;
  use Drupal\Core\Form\FormStateInterface;
  use Drupal\Component\Utility\UrlHelper;
  
  /**
  * Implements hook_preprocess_HOOK() for HTML document templates.
  */
  
  function themename_preprocess_html(&amp;$variables) {
  
  $form = \Drupal::formBuilder()-&gt;getForm('Drupal\user\register');
  
  return $form;
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.
  Thank you!</p>