Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have developed it from scratch few years back. However, I don't think the theme would be a problem - as I wrote above, I read online that this is a common issue related to the Metatag module and that one has to call the methods above - but that's PHP, so it would be usable in D7 .tpl files, not in TWIG in D8 - and that's the question, I think: how to call this in a D8 TWIG template.
yes, I renamed the function to mytheme_hook_node_view, where mytheme is the right name of my theme, but still no difference, the metatag does not appear in the code (of course, clearing caches)