Score:0

How do I change a display plugin class

vn flag

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?

4uk4 avatar
cn flag
Found this example https://drupal.stackexchange.com/questions/219835/add-background-image-to-block-from-view. The hook is invoked when you clear the cache.
vn flag
@4k4 thank you, that was exactly what I needed. How do I accept your answer?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.