I like the simplicity of this module. With just 154 lines of code it lets us use all image formatters for files and all file formatters for images. I think it is brilliant.

I was planning on something similar for Drupal8 and I see that we can't follow the same approach as field formatters are now generated using Plugins. Is there a way we can use the same approach for Drupal8 as well so that we can interuse the field formatters?

If you can provide some inputs, I will be happy to spend some time working on porting this to Drupal 8.

Comments

gokulnk created an issue. See original summary.

Dave Reid’s picture

Status: Needs work » Postponed
gokulnk’s picture

Agree with you that it should be a part of the core. Since it was not part of core(I assumed that it was not included on purpose), I wrote a module https://www.drupal.org/project/file_entity_reference_image_formatter which helps format the file references as images.