Inserting a view in node edit form In a node edit form i want to display an editable view, so an author can not only edit the node itself but also can alter some values of other nodes represented by the view, which is editable via the editable views module. How can i alter the node edit form in order to display that view?
It took me a while to find out how to do it in Drupal 8, and since this post is one of the first google hits I'll add the solution here: 

function MODULE_form_node_NODETYPE_alter(&amp;$form, FormStateInterface $form_state, $form_id) {
    ...
    $form['my_embedded_view'] = [
        '#type' =&gt; 'view',
        '#name' =&gt; 'my_view_name',
        '#display_id' =&gt; 'block_1',
        '#arguments' =&gt; [
            'arg1' =&gt; $arg_1,
            'arg2' =&gt; $arg_2,
        ],
        '#weight' =&gt; 30,
    ] ;
...
}


I used a block display for the view, I don't know if it's relevant.