I've got a view with a contextual filter for an entity reference field. The contextual filter fetches the current node id from URL as filter criteria. The individual rows of the view are rendered as content in teaser view mode (not using fields), so basically it uses
node--nodetype--teaser.html.twig to render the results. The view is attached to nodes using the EVA module
I now need the value of a field from the host/contextual node in
node--nodetype--teaser.html.twig (the template used by the views row). I know how to query entities and fields, but I don't know which hook to use and how to get the node ID of the contextual filter.
How can I get the contextual filter ID and which hook should I use to pass the contextual filter down to the node teaser template?