Create a Context/Condition and get a view display used on the page
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?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.