export entity view modes (reverted from commit 3b6be3e7648e1ab8cdb37172c1c62025682cf8b4)