On a node page I would like to add the node title to the output alongside another another field (the example field).
I have created a new field--field-example.html.twig
but am unable to access the node title variable as it is not available in the field template.
I need to add the variables into the theme preprocess: themename.theme
.
How do I add the variable in themename.theme
and what would be the corresponding entry in the field--field-example.html.twig
?