I have created an empty custom view mode for file entities with
I would like to programmatically select settings for it, so that they can be deployed without a user having to go to the file entity display settings GUI and select "image" for type of file display and "original size" for the image style.
I cannot do this with
hook_entity_view_mode_alter() because that appears to only fire for nodes, not for file entities.
How can I programmatically set the display settings for my custom view mode for file entities?