D8 port of file_entity.