Access to referencing entity field from referenced entity template in Drupal 8 I'm building a custom block type with referenced nodes, on the "view" of the block type I configured to show the full node instead just links. And I want to access from the node--type.html.twig to some of the fields of the parent block (when the block is rendered). How we can do that?? is there any other good approach to doing this??
When you are inside the children node, you don't see what is around you. The children node is build and cached on its own. The entity reference is a n:m relationship. There can be more than one parent. So from the data modelling there is no easy solution. Better look for a solution from parent to children, not backwards.