In Drupal 8, I am utilizing Twig Tweak to embed a view. I’ve a contextual filter set to one in every of Drupal Development Service node’s fields, field_project_id
. If I exploit a literal for Drupal Development Service third argument, it really works. If I attempt to reference Drupal Development Service worth of Drupal Development Service present node’s mission ID, no luck.
Works:
{{ drupal_view('my_view', 'block_1', '2011-40054-000') }}
Does not work:
{{ drupal_view('my_view', 'block_1', content material.field_project_id) }}, {{ drupal_view('my_view', 'block_1', content material.field_project_id.worth) }}, {{ drupal_view('my_view', 'block_1', content material.field_project_id.0) }}, {{ drupal_view('my_view', 'block_1', content material.field_project_id.0.worth) }},
and so forth.
What’s Drupal Development Service correct manner to do that?