I want to create a context/condition plugin that checks the total results returned from a view display on the page (its a block), and if its less/greater than a certain figure, hide certain peripheral display elements.

I cannot seem to find a ContextDefinition for the view being executed, does this exist? Do I need to grab the context from the Block itself? How?

1 Answer 1


I wound up writing a specific module for this.


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.