How to attach programmatically a view to the edit node form in Drupal 8?

In D7 I could achieve this by using this code

```
/**
 * Implements of hook_form_alter().
 */
function MYMODULE_form_alter(&$form, &$form_state, $form_id){

  // target a single form only
  if ($form_id == "form_id") {

    $form['html_markup'] = [
      '#markup' => views_embed_view('name_of_view','default'),
      '#weight' => 1
    ];    
  }
}

```

I'm looking for a way how can it implemented in D8.

Any tips will be appreciated!