Is there a way, on drupal 10/11, to add custom preprocess hook by bundle or view mode in a theme?
An example: the default preprocess to alter node, in theme, is
function mytheme_preprocess_node(&$vars) {}
Is there a way to create, automatically, hooks for something like mytheme_preprocess_node_VIEW_MODE
, or mytheme_preprocess_node_BUNDLE
, like the suggestions alter for templates?