Commanding Chaos for Coworking, Open Source and Creative Communities

Creating Custom Field Formatters in Drupal 8

Thu, 03/19/2015 - 05:11 -- rprice

In this article we’ve seen how easy it is to create a field formatter and extend default behaviour in Drupal 8. We’ve only touched on overriding the viewElements() of this plugin but we can do much more to further customise things. You are also not required to extend the ImageFormatter. There are plenty of existing plugins you can either extend from or use as an example.