Alter the presentation (view mode) of an entity in its preview
Pepe García
This is how to modify the presentation (view mode) of an entity according to the conditions that we need through the implementation of a hook_entity_view_mode_alter.