I try to embed a view in a specific node. I found tutorials for doing this with Drupal 7 and PHP-Templates:
<?php print views_embed_view('view_name'); ?>
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?