Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I had created a view with a page display and had configured grouping by field.
And now I want to implement preprocess hook to handle classes for group title wrapper. But unsuccessfull.
Here example:
/**
* Implements hook_preprocess_HOOK().
*/
function my_module_preprocess_views_view_grouping(&$variables) {
\Drupal::messenger()->addStatus('Hook triggered');
}
Looks like hook doesn't triggering.
Comments
Comment #2
volegerAlso, I tried implement preprocess hooks for other views theme function, but they are worked.
Comment #3
volegerComment #11
volegerAny thoughts?