How to embed a view in a specific node? I try to embed a view in a specific node. I found tutorials for doing this with Drupal 7 and PHP-Templates:

&lt;?php print views_embed_view('view_name'); ?&gt;


But I look for a way in Drupal 8 with twig-Templates. I tried to call the views_embed_view() function in the hook_node_view() and assign it to the node so that I can print it out in the twig-Template. But it seems that this hook never gets called.

Any hints/solutions how to do this in the Drupal 8 way?
Twig Views Embed


  This module allows to embed views with a twig function.

{{ views_embed_view('view_name', 'view_id') }}





The above module was depreciated in favour of 

Twig Tweak


  Twig Tweak module provides a Twig extension with some useful functions
  and filters that can improve developer experience.


Ex:    &lt;dd&gt;{{ drupal_view('view_name', 'view_machine_name') }}&lt;/dd&gt;

You can find the view_machine_name over here