Problem/Motivation
I think we should be trying to deprecate this rather than using it more widely. Why is it happening in template_preprocess_page() and not node_preprocess_page(), and/or why isn't it generic for entity types - if it's really needed at all. Having said that, maybe we want to commit this and look at it more widely in a different issue.
Comments
Comment #2
lauriiiA quick fix could be to do the proposal to move the variable from
template_preprocess_pagetonode_preprocess_page. I'm not sure if we should remove this altogether since based on anecdotal evidence, this may be used by many custom themes.Comment #3
lauriiiComment #4
lauriiiComment #5
catchIf we added an entity-agnostic alternative, we could deprecate the node variable (obviously need to have deprecation support for twig variables first).