I have a content type of "doctors" which has attributes and we use view modes to change how this entity is displayed.
For Drupal 8, I need to also show different forms of directories for these doctor entities. In my module I can query the doctor entities dynamically but I don't need all the fields to show.
I thought I could create an additional view_mode like a teaser and use hook_entity_view_mode_alter() to change the child doctor view modes, but the more I look at it that function will only affect the parent directory content type view mode and not the child entities.
I was looking for a solution for "[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>" but was not able to get a solution for drupal (7).
-I have created a custom module with custom entities in drupal 8 site. A user role "admin", give access to a view of entity. The view has a filter field "region" exposed. This user has a field "region" in this account.
For the role "admin" only, I want to set the filter in the view depending of the field "region" of the user. I notice that in the field data I can use ['expose']['reduce'] = "true". It's probably reffered to the option in the exposed filter " Limit the list of selected items"
How can I tell to the filter to limit value to the user field "region"?