printing an entity reference field in a special display mode

I have an entity reference field. The referenced entity has multiple display modes.

I’d like to print this field 2 two times in a template, with 2 different display modes like so:

{{ content.field_ref_entity.display_mode_xy }}

and

{{ content.field_ref_entity.display_mode_yz }}

Is it possible to define the display mode of the referenced entity in field printing? If yes, how?


Go to Source of this post
Author Of this post: deelite
Title Of post: printing an entity reference field in a special display mode
Author Link: {authorlink}