Skip to content

Example module for creating custom field formatters in Drupal 8

License

Notifications You must be signed in to change notification settings

npinos/drupal8-field-formatters

Repository files navigation

drupal8-field-formatters

Example module for creating custom field formatters in Drupal 8

This is a simple module to show the basics of creating a custom field formatter.

The module includes two formatter plugins to customize the markup output of a simple text field. For this example I'm just wrapping the field output in <h1> or <h2> tags.

The plugins are configured using annotations in the formatter class files.

The result looks like this: field formatter

About

Example module for creating custom field formatters in Drupal 8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages