I have a View with a Rest Export display returning entities. I have a custom Normalizer class for it that crafts the object the way I want it in the response.
The node entity in the response has some custom data attached to it coming from an API (think operating hours). I am being asked that if someone clicks on ‘Open Now’ in the filtering form (not yet created), then anything not open should not be shown in the list.
Is there some way I can add a custom filter or hook into Views and look for this URL parameter and exclude a result from the list if it is not open? hook_views_pre_render and hook_views_post_render don’t seem to fire, I assume this is because I am using Serializer format.