drupal_field(field_name, entity_type, id) doesn't work with media entities.
I have the following media entity:
image
entityTypeId = "media" and mid = "14"
I tried outputting the image field using the following code:
{{ drupal_field('field_media_image', 'media', 14) }}
However, nothing is output, and there are no error messages.
Other people have reported the same problem but not as a separate issue:
https://www.drupal.org/project/twig_tweak/issues/3198627#comment-14000078 →
Closed: works as designed
2.10
Code