I’m trying to use the template_preprocess_views_view_unformatted on a Drupal 9 website.
Tried to put very simple command into the function in mytheme.theme, unfortunately didn’t give me my ‘test’ output:
function mytheme_preprocess_views_view_unformatted(&$variables) { kint('test'); }
Tried to use it in a custom module as:
function mymodule_preprocess_views_view_unformatted(&$variables) { kint('test'); }
and that also didn’t work. Kint is working just fine if I use hook_preprocess_views_view(), however I really need to use hook_preprocess_views_view_unformatted().
I thought this is taking place because of some bug in the core like https://www.drupal.org/node/939462, but that one is closed as fixed. Does this preprocess function work at all?