0

I'm attempting to modify the definition of a view display plugin to use my own custom class. I used hook_views_plugins_display_alter(), but it doesn't seem it's invoked at all. I've searched in core code where the hook is invoked, but I didn't find it.

Does anyone know an example of using this hook, or another way to override the class for a view display plugin?

2
  • Found this example drupal.stackexchange.com/questions/219835/…. The hook is invoked when you clear the cache.
    – 4uk4
    Commented Jul 29, 2021 at 16:44
  • 1
    @4k4 thank you, that was exactly what I needed. How do I accept your answer?
    – Howard
    Commented Jul 29, 2021 at 19:24

0

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.