I have a Drupal 8 site with Twig Tweak 2 which I’ve upgraded to Drupal 9 with Twig Tweak 3. This has broken a custom node twig template.
With Twig Tweak 2, this worked:
{{ drupal_field('field_library_photo', 'node' }}
I gather from reading the documentation, this should work with Twig Tweak 3:
{{ drupal_field('field_library_photo', 'node', node.id) }}
But it doesn’t. As a proof of concept, I hardcoded the node id of one of the library pages:
{{ drupal_field('field_library_photo', 'node', 117) }}
Also doesn’t work. (And when I say it doesn’t work, there’s nothing rendered in the HTML output and no errors are thrown.)
What am I missing here? Thanks!