1

In Drupal 7, we could use

hook_query_alter()

in theme layer since drupal_alter() made modules and theme run the alter functions, but in Drupal 8, it seems this as been restricted to custom modules...

Is this true? or can themes partake too? another way?

I have a view, that i will change context argument depending on page it is rendered.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.