In Drupal 7, we could use


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 and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.