Reference — target ID
Fill in your field nameItalic values are placeholders: replace them with your own machine names, or let the builder do it.
Raw entity
Open in builder (Raw entity)Reads the entity directly, before field formatters run.
- Snippet 1
{{ node.field_name. target_id }} - Snippet 2
{{ node.field_name. entity. id( ) }}