I'm on Drupal 8 and I have a view with multiple argument (list of node ID) but I can't embed this on my node.twig.html.
That's my code:
{% set myArray = [] %}
{% for item in content.field_articles_lies['#items'] %}
{% set myArray = myArray|merge([item.entity.nid.value]) %}
{% endfor %}
{{ drupal_view('articles_lies','default', myArray()) }}
if I do that: {{ drupal_view('articles_lies','default', myArray.0) }}
it's ok but obviously only for one.
How can I pass an argument with multiple values to a view rendered via drupal_view()
in a template?